Skip to content

Commit 4f6b286

Browse files
committed
fixup: Rust in CI ...
1 parent 2e53bfb commit 4f6b286

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.evergreen/install-node.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ else
1919
if which realpath; then # No realpath on macOS, but also not needed there
2020
export HOME="$(realpath "$HOME")" # Needed to de-confuse nvm when /home is a symlink
2121
fi
22+
23+
echo "Setting up Rust"
24+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y
25+
2226
# Some Node.js driver versions leave a ~/.npmrc file lying around
2327
# that breaks nvm because it contains a 'prefix=' option (pointing
2428
# to a directory that no longer exists anyway).

.evergreen/setup-env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if [ "$OS" != "Windows_NT" ]; then
99
if which realpath; then # No realpath on macOS, but also not needed there
1010
export HOME="$(realpath "$HOME")" # Needed to de-confuse nvm when /home is a symlink
1111
fi
12+
source $HOME/.cargo/env
13+
1214
export NVM_DIR="$BASEDIR/.nvm"
1315
echo "Setting NVM environment home: $NVM_DIR"
1416
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

0 commit comments

Comments
 (0)