Replace cargo-web install step in CI with dtolnay/install
This commit is contained in:
parent
b7be637e8c
commit
adcb11ca18
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -137,14 +137,7 @@ jobs:
|
|||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 9
|
node-version: 9
|
||||||
- name: Install cargo-web
|
- uses: dtolnay/install@cargo-web
|
||||||
run: |
|
|
||||||
CARGO_WEB_RELEASE=$(curl -L -s -H Accept:application/json https://github.com/koute/cargo-web/releases/latest)
|
|
||||||
CARGO_WEB_VERSION=$(echo "${CARGO_WEB_RELEASE}" | jq -r .tag_name)
|
|
||||||
CARGO_WEB_URL="https://github.com/koute/cargo-web/releases/download/${CARGO_WEB_VERSION}/cargo-web-x86_64-unknown-linux-gnu.gz"
|
|
||||||
mkdir -p ~/.cargo/bin
|
|
||||||
curl -L "${CARGO_WEB_URL}" | gzip -d > ~/.cargo/bin/cargo-web
|
|
||||||
chmod +x ~/.cargo/bin/cargo-web
|
|
||||||
- run: cd test_suite && cargo web test --target=asmjs-unknown-emscripten --nodejs
|
- run: cd test_suite && cargo web test --target=asmjs-unknown-emscripten --nodejs
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- run: cd test_suite && cargo web test --target=wasm32-unknown-emscripten --nodejs
|
- run: cd test_suite && cargo web test --target=wasm32-unknown-emscripten --nodejs
|
||||||
|
Loading…
Reference in New Issue
Block a user