File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,7 @@ matrix:
130
130
- rustup target add wasm32-unknown-unknown
131
131
- rustup target add wasm32-unknown-emscripten
132
132
- nvm install 9
133
- # cargo-web takes ±10 min. to install, and cargo and cargo-update offer
134
- # no reliable update-or-install command. We ignore updating for now
135
- # (just drop the Travis' caches when necessary)
136
- - cargo --list | egrep "^\s*web$" -q || cargo install cargo-web
133
+ - ./utils/ci/install_cargo_web.sh
137
134
- cargo web -V
138
135
addons :
139
136
chrome : stable
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -euo pipefail
4
+ IFS=$' \n\t '
5
+
6
+ CARGO_WEB_RELEASE=$( curl -L -s -H ' Accept: application/json' https://github.com/koute/cargo-web/releases/latest)
7
+ CARGO_WEB_VERSION=$( echo $CARGO_WEB_RELEASE | sed -e ' s/.*"tag_name":"\([^"]*\)".*/\1/' )
8
+ CARGO_WEB_URL=" https://github.com/koute/cargo-web/releases/download/$CARGO_WEB_VERSION /cargo-web-x86_64-unknown-linux-gnu.gz"
9
+
10
+ echo " Downloading cargo-web from: $CARGO_WEB_URL "
11
+ curl -L $CARGO_WEB_URL | gzip -d > cargo-web
12
+ chmod +x cargo-web
13
+
14
+ mkdir -p ~ /.cargo/bin
15
+ mv cargo-web ~ /.cargo/bin
You can’t perform that action at this time.
0 commit comments