File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ matrix:
18
18
19
19
before_script :
20
20
- rustup component add rustfmt
21
- - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
21
+ - (test -x $HOME/.cargo/bin/cargo-install-update || ./ci/ install- cargo-update.sh )
22
22
- (test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh)
23
23
- cargo install-update -a
24
24
Original file line number Diff line number Diff line change
1
+ set -euxo pipefail
2
+
3
+ # Based on the Rust-Embedded WG's book CI
4
+ # https://github.com/rust-embedded/book/blob/master/ci/install.sh
5
+
6
+ main () {
7
+ # Note - this will accept any tagged release
8
+ local tag=$( git ls-remote --tags --refs --exit-code \
9
+ https://github.com/nabijaczleweli/cargo-update \
10
+ | cut -d/ -f3 \
11
+ | grep -E ' ^v[0-9\.]+$' \
12
+ | sort --version-sort \
13
+ | tail -n1)
14
+
15
+ curl -LSfs https://japaric.github.io/trust/install.sh | \
16
+ sh -s -- --git nabijaczleweli/cargo-update --tag $tag
17
+ }
18
+
19
+ main
Original file line number Diff line number Diff line change 8
8
local tag=$( git ls-remote --tags --refs --exit-code \
9
9
https://github.com/rust-lang-nursery/mdbook \
10
10
| cut -d/ -f3 \
11
- | grep -E ' ^v0.3 .[0-9]+$' \
11
+ | grep -E ' ^v0\.3\ .[0-9]+$' \
12
12
| sort --version-sort \
13
13
| tail -n1)
14
14
You can’t perform that action at this time.
0 commit comments