build win
This commit is contained in:
34
.github/workflows/build.yml
vendored
Normal file
34
.github/workflows/build.yml
vendored
Normal file
@@ -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/
|
||||||
Reference in New Issue
Block a user