Skip to content

Commit a41c415

Browse files
committed
Oddly, Cirrus's nodes don't have /root/.cargo/env
1 parent cd9bc33 commit a41c415

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/script.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33

44
set -ex
55

6-
. $HOME/.cargo/env
6+
which cargo
7+
if [ -f $HOME/cargo/env ]; then
8+
. $HOME/.cargo/env
9+
else
10+
export PATH="$HOME/.cargo/bin:$PATH"
11+
fi
712

813
main() {
914
# Add a cfg spec to allow disabling specific tests under CI.

0 commit comments

Comments
 (0)