Skip to content

Commit f1c96f9

Browse files
bors[bot]adamgreig
andauthored
Merge #214
214: Update CI install to use latest mdbook, reverting 09753a1 r=jamesmunns a=adamgreig Ref #136 Closes #137 `ci/install.sh` is updated based on [book's copy](https://github.com/rust-embedded/book/blob/master/ci/install.sh), but preserving the rustup line and target specification. Co-authored-by: Adam Greig <[email protected]>
2 parents 708f5d1 + e268b5c commit f1c96f9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

ci/install.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
set -euxo pipefail
22

33
main() {
4-
# install latest mdbook v0.2.x release
5-
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang-nursery/mdbook \
4+
local tag=$(git ls-remote --tags --refs --exit-code \
5+
https://github.com/rust-lang/mdbook \
66
| cut -d/ -f3 \
7-
| grep -E '^v0.2.[0-9]+$' \
7+
| grep -E '^v[0-9\.]+$' \
88
| sort --version-sort \
99
| tail -n1)
10-
local tag="v0.2.1"
10+
1111
curl -LSfs https://japaric.github.io/trust/install.sh | \
1212
sh -s -- \
1313
--force \
14-
--git rust-lang-nursery/mdBook \
15-
--tag $tag \
16-
--target x86_64-unknown-linux-musl
14+
--git rust-lang/mdbook \
15+
--tag $tag
1716

1817
rustup target add thumbv7em-none-eabihf
1918

0 commit comments

Comments
 (0)