Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
/ setup-tinygo Public archive
forked from acifani/setup-tinygo

GitHub action to setup a TinyGo environment

License

Notifications You must be signed in to change notification settings

Integralist/setup-tinygo

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

setup-tinygo

Check dist/ Validate

This actions sets up a TinyGo environment for GitHub Actions.

Usage

Basic

steps:
  - uses: actions/checkout@v2
  - uses: Integralist/[email protected]
    with:
      tinygo-version: 0.20.0

With matrix expansion

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 }}

With custom Go version

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

Why?

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.

About

GitHub action to setup a TinyGo environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.6%
  • Shell 4.4%