Skip to content

Commit 790b5db

Browse files
author
Dennis P
committed
fix(node): final nuclear correction for musl using cargo-zigbuild
1 parent 11a9d3b commit 790b5db

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release-sdk-nodejs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ jobs:
7373
with:
7474
version: 0.11.0
7575

76+
- name: Install cargo-zigbuild
77+
if: ${{ matrix.zig }}
78+
run: cargo install cargo-zigbuild
79+
7680
- uses: actions/setup-node@v4
7781
with:
7882
node-version: 22
@@ -86,7 +90,8 @@ jobs:
8690
shell: bash
8791
run: |
8892
if [ "${{ matrix.zig }}" = "true" ]; then
89-
npm run build:zig -- --target ${{ matrix.target }}
93+
cargo zigbuild --target ${{ matrix.target }} --release
94+
mv ../../target/${{ matrix.target }}/release/libnodejs.so ${{ matrix.artifact }}
9095
elif [ "${{ matrix.cross }}" = "true" ]; then
9196
npm run build:cross -- --target ${{ matrix.target }}
9297
else

0 commit comments

Comments
 (0)