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/