File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : ci-build
22on : [push, pull_request]
33
4- env :
5- WASM_PACK_VERSION : 0.12.1
6-
74jobs :
85 do-build :
96 runs-on : ubuntu-latest
107 steps :
118 - uses : actions/checkout@v2
9+ - uses : actions/setup-node@v4
10+ with :
11+ node-version : 20
1212 - uses : actions-rs/toolchain@v1
1313 with :
1414 toolchain : stable
1818 - run : cargo test --no-default-features --features=std
1919 - run : cargo test --no-default-features
2020
21- - name : Create a directory for binary dependencies
22- shell : bash
23- run : |
24- mkdir -p $GITHUB_WORKSPACE/bin
25- echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
26-
2721 - name : Install wasm-pack
28- working-directory : ${{ github.workspace }}/bin
29- shell : bash
30- run : |
31- file_name="wasm-pack-v${WASM_PACK_VERSION}-x86_64-unknown-linux-musl"
32- curl \
33- --config ${GITHUB_WORKSPACE}/.github/curl_options \
34- https://github.com/rustwasm/wasm-pack/releases/download/v${WASM_PACK_VERSION}/${file_name}.tar.gz \
35- | tar --strip-components=1 -xzvf- "${file_name}/wasm-pack"
22+ run : cargo install wasm-pack
3623
37- - run : wasm-pack test --node
24+ - run : ~/.cargo/bin/ wasm-pack test --node
You can’t perform that action at this time.
0 commit comments