From b4029b6e3bb08dded02950461b8f78f8b17dffc1 Mon Sep 17 00:00:00 2001 From: Caian Ertl Date: Fri, 3 Jul 2026 21:08:14 -0300 Subject: [PATCH] ci(node): pin release rust toolchain so cross targets build The build matrix installed each target's rust-std on `stable`, but `napi build` honors rust-toolchain.toml (1.90.0), which then lacked `core` for the cross targets (aarch64-gnu, both musl, x86_64-darwin). Pin the toolchain to 1.90.0 so the target std lands where the build uses it. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release-npm.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index 121558f..38359ac 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -42,9 +42,13 @@ jobs: with: node-version: 24 + # Pin to the repo's rust-toolchain.toml channel so the cross target's + # rust-std lands on the toolchain `napi build` actually uses; installing + # it on `stable` leaves the pinned toolchain without `core` for the target. - name: Setup Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@master with: + toolchain: "1.90.0" targets: ${{ matrix.target }} - name: Install dependencies