From 1821c90509e060fdefefc2a378bccc155610fa15 Mon Sep 17 00:00:00 2001 From: Wei Lin Date: Thu, 3 Sep 2026 17:05:10 +0800 Subject: [PATCH] fix(ci): pin Rust for ARM64 musl npm build Rust 1.98 adds an AArch64 linker flag rejected by napi-rs 2's Zig linker path. Keep stable for all other targets and use Rust 1.97.1 only for aarch64-unknown-linux-musl. --- .github/workflows/npm-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index fc8074dc..7268fcb2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -73,6 +73,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: + toolchain: ${{ matrix.target == 'aarch64-unknown-linux-musl' && '1.97.1' || 'stable' }} targets: ${{ matrix.target }} - name: Setup Zig