Files
KVF/.gitea/workflows/CI.yml
Kbz-8 4e3c2f9983
Some checks failed
Windows / build (windows-x86_64) (push) Failing after 2s
Windows / build (ubuntu-latest) (push) Failing after 14s
Windows / build (macos-x86_64) (push) Has been cancelled
fixing CI
2026-01-18 16:00:35 +01:00

49 lines
1.2 KiB
YAML

name: Windows
on:
repository_dispatch:
types: [create-pull-request]
pull_request:
push:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-x86_64, macos-x86_64, ubuntu-latest]
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Get current date as package key
id: cache_key
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v6
# Force xmake to a specific folder (for cache)
- name: Set xmake env
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV
# Install xmake
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
actions-cache-folder: .xmake-cache-W${{ steps.cache_key.outputs.key }}
# Update xmake repository (in order to have the file that will be cached)
- name: Update xmake repository
run: xmake repo --root --update
# Build the mlx
- name: Build MacroLibX
run: xmake --yes