This action sets up a TinyGo environment for GitHub Actions.
Supported runners: ubuntu-latest, macos-latest, windows-latest.
| Input | Description | Default |
|---|---|---|
tinygo-version |
The exact TinyGo version to download and use. | 0.40.1 |
install-binaryen |
Whether to install Binaryen. | true |
binaryen-version |
The exact Binaryen version to download and use. | 129 |
steps:
- uses: actions/checkout@v5
- uses: acifani/setup-tinygo@v3
with:
tinygo-version: '0.40.1'jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
tinygo: ['0.39.0', '0.40.1']
name: TinyGo ${{ matrix.tinygo }}
steps:
- uses: actions/checkout@v5
- uses: acifani/setup-tinygo@v3
with:
tinygo-version: ${{ matrix.tinygo }}TinyGo needs Go and, by default, this action will use whatever
version is available in the runner. If you want to control the
Go version, you can use actions/setup-go before acifani/setup-tinygo
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- uses: acifani/setup-tinygo@v3
with:
tinygo-version: '0.40.1'This action will install Binaryen which is needed for building WASM on Windows and macOS. You can customize the version with the dedicated input value
steps:
- uses: actions/checkout@v5
- uses: acifani/setup-tinygo@v3
with:
tinygo-version: '0.40.1'
binaryen-version: '129'If you don't need Binaryen, you can omit the installation
steps:
- uses: actions/checkout@v5
- uses: acifani/setup-tinygo@v3
with:
tinygo-version: '0.40.1'
install-binaryen: 'false'