We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ee31b6 commit 204ae16Copy full SHA for 204ae16
1 file changed
.github/workflows/build.yml
@@ -14,8 +14,8 @@ jobs:
14
- os: ubuntu-latest
15
target: x86_64-linux
16
- os: windows-latest
17
- target: x86_64-windows-gnu
18
- extra_flags: "-Dlink-libc=true"
+ target: x86_64-windows
+ extra_flags: ""
19
- os: macos-latest
20
target: x86_64-macos
21
@@ -25,10 +25,15 @@ jobs:
25
- uses: actions/checkout@v4
26
27
- name: Install Zig
28
- uses: mlugg/setup-zig@v1.2.1
+ uses: goto-bus-stop/setup-zig@v2
29
with:
30
version: '0.14.0'
31
32
+ - name: Windows workaround
33
+ if: matrix.os == 'windows-latest'
34
+ run: |
35
+ Add-Content -Path build.zig -Value "`nexe.root_module.link_libc = true;" -Encoding utf8
36
+
37
- name: Build
38
run: |
39
zig build -Doptimize=ReleaseFast -Dtarget=${{ matrix.target }} ${{ matrix.extra_flags || '' }}
0 commit comments