Replace cargo-web install step in CI with dtolnay/install

This commit is contained in:
David Tolnay 2023-01-27 19:34:12 -08:00
parent b7be637e8c
commit adcb11ca18
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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