Skip to content

Commit 9e81d96

Browse files
committed
fix: resolve release workflow failures for cross-compilation targets
1 parent 75952f1 commit 9e81d96

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ jobs:
2626
- host: ubuntu-latest
2727
target: x86_64-unknown-linux-musl
2828
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
29-
build: npm run build
29+
build: npm run build:native
3030

3131
- host: ubuntu-latest
3232
target: aarch64-unknown-linux-gnu
3333
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
34-
build: npm run build
34+
build: npm run build:native
3535

3636
- host: ubuntu-latest
3737
target: aarch64-unknown-linux-musl
3838
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
3939
build: |-
4040
rustup target add aarch64-unknown-linux-musl
41-
npm run build -- --target aarch64-unknown-linux-musl
41+
npm run build:native -- --target aarch64-unknown-linux-musl
4242
4343
- host: macos-latest
4444
target: x86_64-apple-darwin
@@ -54,7 +54,7 @@ jobs:
5454
export CXX=$(xcrun -f clang++)
5555
SYSROOT=$(xcrun --sdk macosx --show-sdk-path)
5656
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT"
57-
npm run build -- --target aarch64-apple-darwin
57+
npm run build:native -- --target aarch64-apple-darwin
5858
strip -x *.node
5959
6060
- host: windows-latest
@@ -63,11 +63,11 @@ jobs:
6363

6464
- host: windows-latest
6565
target: aarch64-pc-windows-msvc
66-
build: npm run build -- --target aarch64-pc-windows-msvc
66+
build: npm run build:native -- --target aarch64-pc-windows-msvc
6767

6868
- host: windows-latest
6969
target: i686-pc-windows-msvc
70-
build: npm run build -- --target i686-pc-windows-msvc
70+
build: npm run build:native -- --target i686-pc-windows-msvc
7171

7272
steps:
7373
- uses: actions/checkout@v4

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ napi-build = "2.1"
5252
[dev-dependencies]
5353
criterion = "0.5"
5454
tempfile = "3"
55-
ignore = "0.4"
55+
ignore = "=0.4.23"
5656
num_cpus = "1.16"
5757

5858
[[bench]]

0 commit comments

Comments
 (0)