Skip to content

Commit 59be1fb

Browse files
fix: only use zig for linux builds
1 parent 63db4d1 commit 59be1fb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555

5656
- name: Install Zig
5757
uses: mlugg/setup-zig@v1
58+
if: ${{ runner.os == 'Linux' }}
5859

5960
- name: Cache NPM dependencies
6061
uses: actions/cache@v4
@@ -78,6 +79,8 @@ jobs:
7879

7980
- name: Build
8081
run: npx nx build:native -- --target ${{ matrix.target }}
82+
env:
83+
USE_ZIG: ${{ runner.os == 'Linux' }}
8184
shell: bash
8285

8386
- name: Upload artifact

project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build:native": {
66
"executor": "nx:run-commands",
77
"options": {
8-
"command": "npx @napi-rs/cli build --platform --target {args.target} --release --zig"
8+
"command": "npx @napi-rs/cli build --platform --target {args.target} --release ${USE_ZIG:+--zig}"
99
},
1010
"outputs": [
1111
"{workspaceRoot}/cel-typescript.darwin-arm64.node",

0 commit comments

Comments
 (0)