File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 7
7
- osx
8
8
- windows
9
9
10
+ cache :
11
+ directories :
12
+ - $HOME/.cargo/bin/rustup-toolchain-install-master
13
+
10
14
branches :
11
15
# Don't build these branches
12
16
except :
Original file line number Diff line number Diff line change 3
3
4
4
cd " $( dirname " $0 " ) "
5
5
6
+ cratesio_version=$( cargo search rustup-toolchain-install-master | grep -o " [0-9]\.[0-9]\.[0-9]" )
7
+ rtim_version=$( rustup-toolchain-install-master --version | grep -o " [0-9]\.[0-9]\.[0-9]" )
8
+
6
9
if ! command -v rustup-toolchain-install-master > /dev/null; then
7
10
cargo install rustup-toolchain-install-master --debug
11
+ else
12
+ if [ $rtim_version != $cratesio_version ]; then
13
+ cargo install rustup-toolchain-install-master --debug --force
14
+ fi
8
15
fi
9
16
10
17
RUSTC_HASH=$( git ls-remote https://github.com/rust-lang/rust.git master | awk ' {print $1}' )
You can’t perform that action at this time.
0 commit comments