Skip to content

Commit 4cd8367

Browse files
fix: codepipeline failures when running cargo (#711)
1 parent 78e9c14 commit 4cd8367

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build-config/buildspec-linux-minimal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ phases:
2020
# Install cargo
2121
- curl --retry 5 --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2222
- . "$HOME/.cargo/env"
23+
- rustup toolchain install `cat rust-toolchain.toml | grep channel | cut -d '=' -f2 | tr -d ' "'`
2324
# Install cross only if the musl env var is set and not null
2425
- if [ ! -z "${AMAZON_Q_BUILD_MUSL:+x}" ]; then cargo install cross --git https://github.com/cross-rs/cross; fi
2526
# Install python/node via mise (https://mise.jdx.dev/continuous-integration.html)

build-config/buildspec-linux-ubuntu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ phases:
1919
# Install cargo
2020
- curl --retry 5 --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2121
- . "$HOME/.cargo/env"
22+
- rustup toolchain install `cat rust-toolchain.toml | grep channel | cut -d '=' -f2 | tr -d ' "'`
2223
# Install tauri-cli, required for building and bundling the desktop app
2324
- cargo install --version 1.6.2 tauri-cli
2425
# Install cross only if the musl env var is set and not null

0 commit comments

Comments
 (0)