File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 with :
2727 targets : " aarch64-unknown-linux-gnu, x86_64-unknown-linux-musl"
2828
29+ # rust-toolchain.toml pins a version-named toolchain, so the cross targets
30+ # must be added to it (the action adds them to `stable`, which cargo ignores).
31+ - name : Add cross-compile targets to the pinned toolchain
32+ run : rustup target add aarch64-unknown-linux-gnu x86_64-unknown-linux-musl
33+
2934 - name : Rust cache
3035 uses : Swatinem/rust-cache@v2
3136
@@ -231,6 +236,11 @@ jobs:
231236 with :
232237 targets : " aarch64-apple-darwin, x86_64-apple-darwin"
233238
239+ # rust-toolchain.toml pins a version-named toolchain, so the cross targets
240+ # must be added to it (the action adds them to `stable`, which cargo ignores).
241+ - name : Add cross-compile targets to the pinned toolchain
242+ run : rustup target add aarch64-apple-darwin x86_64-apple-darwin
243+
234244 - name : Rust cache
235245 uses : Swatinem/rust-cache@v2
236246
You can’t perform that action at this time.
0 commit comments