File tree 2 files changed +10
-2
lines changed 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 20
20
- uses : actions/checkout@v4
21
21
with :
22
22
submodules : recursive
23
+ - name : Install rustup
24
+ run : ./scripts/setup/install_rustup.sh
23
25
- uses : EmbarkStudios/cargo-deny-action@v2
24
26
with :
25
27
arguments : --all-features --workspace
Original file line number Diff line number Diff line change 5
5
set -eux
6
6
7
7
# 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
You can’t perform that action at this time.
0 commit comments