Skip to content

Commit 40e46bc

Browse files
Install toolchain with rustup >= 1.28.0 (#3917)
See https://github.com/rust-lang/rustup/blob/master/CHANGELOG.md#1280---2025-03-04 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses. --------- Co-authored-by: Zyad Hassan <[email protected]>
1 parent 8d46dc6 commit 40e46bc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/deny.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
submodules: recursive
23+
- name: Install rustup
24+
run: ./scripts/setup/install_rustup.sh
2325
- uses: EmbarkStudios/cargo-deny-action@v2
2426
with:
2527
arguments: --all-features --workspace

scripts/setup/install_rustup.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
set -eux
66

77
# Install Rust toolchain
8-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
9-
&& source ~/.cargo/env
8+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
9+
# Don't use .cargo/env as that won't prepend .cargo/bin to the PATH when it's
10+
# already somewhere in there
11+
export PATH="$HOME/.cargo/bin:$PATH"
12+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
13+
pushd ${SCRIPT_DIR}/../../
14+
rustup toolchain install
15+
popd

0 commit comments

Comments
 (0)