From 949137fdece4c98ee5fdadb4ed3da7f7b6f821c6 Mon Sep 17 00:00:00 2001 From: agra Date: Mon, 9 Feb 2026 20:45:27 +0200 Subject: [PATCH] build win --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9877e98 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Zig + uses: mlugg/setup-zig@v2 + with: + version: master # pin to a specific version once stable + + - name: Verify LLVM + run: | + & "C:\Program Files\LLVM\bin\llvm-config.exe" --version + + - name: Build + run: zig build -Dstatic-llvm -Dllvm-prefix="C:\Program Files\LLVM" + + - name: Test + run: zig build test -Dstatic-llvm -Dllvm-prefix="C:\Program Files\LLVM" + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: sx-windows-x86_64 + path: zig-out/bin/