File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments