Add Rust targets to the pinned toolchain before building
desktop/rust-toolchain.toml pins 1.98.0, but Setup Rust installs the targets into stable, so the x86_64 Tauri build found no x86_64 std. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a7da442a3b
commit
1669d74a71
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ jobs:
|
|||
run: |
|
||||
cd desktop
|
||||
for TARGET in $(echo "${{ matrix.targets }}" | tr , " "); do
|
||||
# rust-toolchain.toml pins a toolchain other than the one Setup
|
||||
# Rust gave the targets to, so add each to the pinned one here.
|
||||
rustup target add "$TARGET"
|
||||
npx --yes @tauri-apps/cli@2 build --target "$TARGET"
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue