Skip to content

Commit 7ae9502

Browse files
authored
Merge pull request #89 from ninegua/fix-ci-wasm-pack
Install wasm-pack using cargo and choose nodejs version 20
2 parents a33a00f + 1fe0ab7 commit 7ae9502

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: ci-build
22
on: [push, pull_request]
33

4-
env:
5-
WASM_PACK_VERSION: 0.12.1
6-
74
jobs:
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
@@ -18,20 +18,7 @@ jobs:
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

0 commit comments

Comments
 (0)