Add Rust targets to the pinned toolchain before building
Some checks failed
Desktop Release / Build desktop (macos) (push) Successful in 2m29s
CI / ci (push) Successful in 7m46s
Desktop Release / Publish Gitea release (push) Successful in 23s
Desktop Release / Update Homebrew tap (push) Failing after 18s

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:
Philip Peterson 2026-10-10 23:06:25 -08:00
parent a7da442a3b
commit 1669d74a71

View file

@ -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