Skip to content

Commit 019a874

Browse files
committed
CI/CD: Use the same version of wasm-bindgen-cli as wasm-bindgen.
1 parent 749502e commit 019a874

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ jobs:
263263
steps:
264264
- uses: actions/checkout@v2
265265

266+
- run: cargo generate-lockfile
266267
- run: mk/install-build-tools.sh --target=${{ matrix.target }} ${{ matrix.features }}
267268

268269
- uses: actions-rs/toolchain@v1

mk/install-build-tools.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ case $target in
6666
use_clang=1
6767
;;
6868
--target=wasm32-unknown-unknown)
69-
cargo install wasm-bindgen-cli --vers "0.2.68" --bin wasm-bindgen-test-runner
69+
# The version of wasm-bindgen-cli must match the wasm-bindgen version.
70+
wasm_bindgen_version=$(cargo metadata --format-version 1 | jq -r '.packages | map(select( .name == "wasm-bindgen")) | map(.version) | .[0]')
71+
cargo install wasm-bindgen-cli --vers "$wasm_bindgen_version" --bin wasm-bindgen-test-runner
7072
case ${features-} in
7173
*wasm32_c*)
7274
use_clang=1

0 commit comments

Comments
 (0)