This actions sets up a TinyGo environment for GitHub Actions.
steps:
- uses: actions/checkout@v2
- uses: Integralist/[email protected]
with:
tinygo-version: 0.20.0
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
tinygo: ['0.19.0', '0.20.0']
name: TinyGo ${{ matrix.tinygo }}
steps:
- uses: actions/checkout@v2
- uses: Integralist/[email protected]
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 integralist/setup-tinygo
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.17
- uses: Integralist/[email protected]
with:
tinygo-version: 0.20.0
This is a fork of https://github.com/acifani/setup-tinygo and the reason for forking was to add support for binaryen
. I had opened an issue (here) but it received no response of any kind and I wasn't in a position to wait around so I decided I'd fork and implement the necessary changes myself.