Skip to content

Commit 64ba04f

Browse files
authored
fix: use stable version in build workflow jobs which using docker (#155)
1 parent 10837cd commit 64ba04f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ jobs:
3232
- host: ubuntu-latest
3333
target: x86_64-unknown-linux-gnu
3434
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
35-
build: yarn build --target x86_64-unknown-linux-gnu
35+
build: |-
36+
rustup update stable &&
37+
yarn build --target x86_64-unknown-linux-gnu
3638
- host: ubuntu-latest
3739
target: x86_64-unknown-linux-musl
3840
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
3941
build: |-
4042
# `perl` needs for building openssl
4143
set -e &&
4244
apk add perl &&
45+
rustup update stable &&
4346
yarn build
4447
- host: ubuntu-latest
4548
target: aarch64-unknown-linux-gnu
@@ -51,6 +54,7 @@ jobs:
5154
apt-get install -y perl &&
5255
unset CC_aarch64_unknown_linux_gnu &&
5356
unset CXX_aarch64_unknown_linux_gnu &&
57+
rustup update stable &&
5458
yarn build --target aarch64-unknown-linux-gnu
5559
- host: ubuntu-latest
5660
target: aarch64-unknown-linux-musl
@@ -59,6 +63,7 @@ jobs:
5963
# `perl` needs for building openssl
6064
set -e &&
6165
apk add perl &&
66+
rustup update stable &&
6267
rustup target add aarch64-unknown-linux-musl &&
6368
yarn build --target aarch64-unknown-linux-musl
6469
- host: ubuntu-latest

0 commit comments

Comments
 (0)