Skip to content

Commit ac60231

Browse files
committed
fix: node build rust version
Signed-off-by: Peefy <xpf6677@163.com>
1 parent 2a5e5e0 commit ac60231

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/nodejs-test.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ jobs:
7272
-e NAPI_TARGET=x86_64-unknown-linux-gnu \
7373
-w /build/nodejs \
7474
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian \
75-
bash -c "corepack prepare pnpm@9.15.4 --activate && pnpm build"
75+
bash -c "corepack prepare pnpm@9.15.4 --activate &&
76+
rustup update 1.88 &&
77+
rustup default 1.88 &&
78+
cargo --version &&
79+
cargo clean &&
80+
cargo update &&
81+
pnpm build"
7682
cd nodejs
7783
# change owner to current user
7884
sudo chown -R 1001:121 *.node
@@ -84,8 +90,11 @@ jobs:
8490
-w /build/nodejs \
8591
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 \
8692
bash -c "set -e &&
93+
rustup update 1.88 &&
94+
rustup default 1.88 &&
8795
rustup target add aarch64-unknown-linux-gnu &&
8896
corepack prepare pnpm@9.15.4 --activate &&
97+
cargo --version &&
8998
cargo clean &&
9099
cargo update &&
91100
pnpm build --target aarch64-unknown-linux-gnu &&

0 commit comments

Comments
 (0)