You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Setup TinyGo
v1.1.0
This actions sets up a TinyGo environment for GitHub Actions.
steps:
- uses: actions/checkout@v2
- uses: acifani/setup-tinygo@v1
with:
tinygo-version: 0.25.0
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
tinygo: ['0.24.0', '0.25.0']
name: TinyGo ${{ matrix.tinygo }}
steps:
- uses: actions/checkout@v2
- uses: acifani/setup-tinygo@v1
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@v2
- uses: actions/setup-go@v2
with:
go-version: 1.19
- uses: acifani/setup-tinygo@v1
with:
tinygo-version: 0.25.0
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@v2
- uses: acifani/setup-tinygo@v1
with:
tinygo-version: 0.25.0
binaryen-version: '110'