Skip to content

Commit

Permalink
Add the wasm-bindgen-test-runner tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog committed Feb 23, 2024
1 parent ffdab02 commit 7880f30
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ https://spdx.org/licenses
| [**shfmt**](https://github.com/mvdan/sh) | `/usr/local/bin` | [GitHub Releases](https://github.com/mvdan/sh/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/mvdan/sh/blob/HEAD/LICENSE) |
| [**syft**](https://github.com/anchore/syft) | `/usr/local/bin` | [Github Releases](https://github.com/anchore/syft/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/anchore/syft/blob/HEAD/LICENSE) |
| [**valgrind**](https://valgrind.org) | `/snap/bin` | [snap](https://snapcraft.io/install/valgrind/ubuntu) | Linux | [GPL-2.0-or-later](https://valgrind.org/docs/manual/license.gpl.html) |
| [**wasm-bindgen-test-runner**](https://github.com/rustwasm/wasm-bindgen) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rustwasm/wasm-bindgen/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/rustwasm/wasm-bindgen/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/rustwasm/wasm-bindgen/blob/HEAD/LICENSE-MIT) |
| [**wasm-pack**](https://github.com/rustwasm/wasm-pack) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rustwasm/wasm-pack/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-MIT) |
| [**wasmtime**](https://github.com/bytecodealliance/wasmtime) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/bytecodealliance/wasmtime/releases) | Linux, macOS, Windows | [Apache-2.0 WITH LLVM-exception](https://github.com/bytecodealliance/wasmtime/blob/HEAD/LICENSE) |
| [**xbuild**](https://github.com/rust-mobile/xbuild) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rust-mobile/xbuild/releases) | Linux, macOS, Windows | Apache-2.0 OR MIT |
Expand Down
4 changes: 2 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ for tool in "${tools[@]}"; do
fi
# cargo-udeps 0.1.30 and wasm-pack 0.12.0 do not support --version option.
case "${tool}" in
biome) rx "${tool_bin}" --version || true ;; # biome up to 1.2.2 exits with 1 on --version and --help
cargo-careful | cargo-machete) ;; # cargo-careful 0.3.4 and cargo-machete 0.5.0 do not support neither --version nor --help option.
biome) rx "${tool_bin}" --version || true ;; # biome up to 1.2.2 exits with 1 on --version and --help
cargo-careful | cargo-machete | wasm-bindgen-test-runner) ;; # these packages support neither --version nor --help option.
cargo-*)
case "${tool}" in
cargo-valgrind) rx "${tool_bin}" "${tool#cargo-}" --help ;; # cargo-valgrind 2.1.0's --version option just calls cargo's --version option
Expand Down
99 changes: 99 additions & 0 deletions manifests/wasm-bindgen-test-runner.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "install-action-internal-codegen"
version = "0.0.1"
edition = "2021"

[dependencies]
Expand Down
28 changes: 28 additions & 0 deletions tools/codegen/base/wasm-bindgen-test-runner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"repository": "https://github.com/rustwasm/wasm-bindgen",
"tag_prefix": "",
"rust_crate": "wasm-bindgen-cli",
"version_range": ">= 0.2.88",
"platform": {
"x86_64_linux_musl": {
"asset_name": "wasm-bindgen-${version}-x86_64-unknown-linux-musl.tar.gz",
"bin": "wasm-bindgen-${version}-x86_64-unknown-linux-musl/wasm-bindgen-test-runner"
},
"x86_64_macos": {
"asset_name": "wasm-bindgen-${version}-x86_64-apple-darwin.tar.gz",
"bin": "wasm-bindgen-${version}-x86_64-apple-darwin/wasm-bindgen-test-runner"
},
"x86_64_windows": {
"asset_name": "wasm-bindgen-${version}-x86_64-pc-windows-msvc.tar.gz",
"bin": "wasm-bindgen-${version}-x86_64-pc-windows-msvc/wasm-bindgen-test-runner.exe"
},
"aarch64_linux_gnu": {
"asset_name": "wasm-bindgen-${version}-aarch64-unknown-linux-gnu.tar.gz",
"bin": "wasm-bindgen-${version}-aarch64-unknown-linux-gnu/wasm-bindgen-test-runner"
},
"aarch64_macos": {
"asset_name": "wasm-bindgen-${version}-aarch64-apple-darwin.tar.gz",
"bin": "wasm-bindgen-${version}-aarch64-apple-darwin/wasm-bindgen-test-runner"
}
}
}

0 comments on commit 7880f30

Please sign in to comment.