Skip to content

Commit 63b0482

Browse files
committed
fixup: Rust in CI ...
1 parent 989a2b4 commit 63b0482

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
@@ -15,6 +15,10 @@ else
1515
if which realpath; then # No realpath on macOS, but also not needed there
1616
export HOME="$(realpath "$HOME")" # Needed to de-confuse nvm when /home is a symlink
1717
fi
18+
19+
echo "Setting up Rust"
20+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y
21+
1822
# Some Node.js driver versions leave a ~/.npmrc file lying around
1923
# that breaks nvm because it contains a 'prefix=' option (pointing
2024
# 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
@@ -29,6 +29,8 @@ if [ "$OS" != "Windows_NT" ]; then
2929
if which realpath; then # No realpath on macOS, but also not needed there
3030
export HOME="$(realpath "$HOME")" # Needed to de-confuse nvm when /home is a symlink
3131
fi
32+
source $HOME/.cargo/env
33+
3234
export NVM_DIR="$BASEDIR/.nvm"
3335
echo "Setting NVM environment home: $NVM_DIR"
3436
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

0 commit comments

Comments
 (0)