Skip to content

Commit 049085a

Browse files
committed
ci(release): add cross-compile targets to the pinned toolchain
1 parent 0e15f71 commit 049085a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
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

0 commit comments

Comments
 (0)