Skip to content

Commit e3326e0

Browse files
MikotoZeroclaude
andcommitted
fix(ci): update Rust in Docker before building native
Docker images have Rust 1.83 but napi-build@2.3.1 requires 1.88+. Add `rustup update stable` before build in Linux Docker jobs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1720188 commit e3326e0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build-native.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
artifact: taptap-signer.linux-x64-gnu.node
5656
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
5757
build: |
58+
rustup update stable && rustup default stable
5859
cd native
5960
npm run build -- --target x86_64-unknown-linux-gnu
6061
strip *.node
@@ -65,6 +66,7 @@ jobs:
6566
artifact: taptap-signer.linux-x64-musl.node
6667
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
6768
build: |
69+
rustup update stable && rustup default stable
6870
cd native
6971
npm run build -- --target x86_64-unknown-linux-musl
7072
strip *.node
@@ -75,6 +77,7 @@ jobs:
7577
artifact: taptap-signer.linux-arm64-musl.node
7678
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
7779
build: |
80+
rustup update stable && rustup default stable
7881
cd native
7982
npm run build -- --target aarch64-unknown-linux-musl
8083
strip *.node

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
target: x86_64-unknown-linux-gnu
9898
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
9999
build: |
100+
rustup update stable && rustup default stable
100101
cd native
101102
npm run build -- --target x86_64-unknown-linux-gnu
102103
strip *.node
@@ -106,6 +107,7 @@ jobs:
106107
target: x86_64-unknown-linux-musl
107108
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
108109
build: |
110+
rustup update stable && rustup default stable
109111
cd native
110112
npm run build -- --target x86_64-unknown-linux-musl
111113
strip *.node

0 commit comments

Comments
 (0)