With the bytecodealliance/actions
collection, you can easily set up wasmtime
, wasm-tools
, and wit-bindgen
in your GitHub Actions workflow.
This collection of Actions enables the following use cases:
wasmtime
using bytecodealliance/actions/wasmtime/setup@v1
wasm-tools
using bytecodealliance/actions/wasm-tools/setup@v1
wit-bindgen
using bytecodealliance/actions/wit-bindgen/setup@v1
Let’s take a look at each one to learn about the required inputs and walk through an example.
wasmtime
Name | Required | Default | Description |
---|---|---|---|
version |
False | latest |
The version of wasmtime to install. |
github_token |
False | ${{ github.token }} |
The GitHub token for querying/downloading wasmtime releases. If provided, it avoids GitHub API rate limiting during GitHub action executions. |
wasmtime
name: wasmtime
on:
push:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
name: Setup wasmtime
steps:
- name: Setup `wasmtime`
uses: bytecodealliance/actions/wasmtime/setup@v1
- name: Run `wasmtime version`
run: "wasmtime --version"
wasmtime
name: wasmtime
on:
push:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
name: Setup wasmtime
steps:
- name: Setup `wasmtime`
uses: bytecodealliance/actions/wasmtime/setup@v1
with:
version: "18.0.1"
- name: Run `wasmtime version`
run: "wasmtime --version"
wasm-tools
Name | Required | Default | Description |
---|---|---|---|
version |
False | latest |
The version of wasm-tools to install. |
github_token |
False | ${{ github.token }} |
The GitHub token for querying/downloading wasm-tools releases. If provided, it avoids GitHub API rate limiting during GitHub action executions |
wasm-tools
name: wasm-tools
on:
push:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
name: Setup wasm-tools
steps:
- name: Setup `wasm-tools`
uses: bytecodealliance/actions/wasm-tools/setup@v1
- name: Run `wasm-tools version`
run: "wasm-tools --version"
wasm-tools
name: wasm-tools
on:
push:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
name: Setup wasm-tools
steps:
- name: Setup `wasm-tools`
uses: bytecodealliance/actions/wasm-tools/setup@v1
with:
version: "1.0.43"
- name: Run `wasm-tools version`
run: "wasm-tools --version"
wit-bindgen
Name | Required | Default | Description |
---|---|---|---|
version |
False | latest |
The version of wit-bindgen to install. |
github_token |
False | ${{ github.token }} |
The GitHub token for querying/downloading wit-bindgen releases. If provided, it avoids GitHub API rate limiting during GitHub action executions |
wit-bindgen
name: wit-bindgen
on:
push:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
name: Setup wit-bindgen
steps:
- name: Setup `wit-bindgen`
uses: bytecodealliance/actions/wit-bindgen/setup@v1
- name: Run `wit-bindgen version`
run: "wit-bindgen --version"
wit-bindgen
name: wit-bindgen
on:
push:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
name: Setup wit-bindgen
steps:
- name: Setup `wit-bindgen`
uses: bytecodealliance/actions/wit-bindgen/setup@v1
with:
version: "0.19.0"
- name: Run `wit-bindgen version`
run: "wit-bindgen --version"