github.com/wasilibs/nottinygc@v0.7.2-0.20240312114022-d59c9478ef51/.github/workflows/ci.yaml (about)

     1  name: CI
     2  on:
     3    push:
     4      branches:
     5        - main
     6      tags:
     7        - "*"
     8    pull_request:
     9    workflow_dispatch:
    10  
    11  jobs:
    12    build:
    13      runs-on: ${{ matrix.os }}
    14      strategy:
    15        fail-fast: false
    16        matrix:
    17          os:
    18            - macos-12
    19            - ubuntu-22.04
    20            - windows-2022
    21      steps:
    22        - uses: actions/checkout@v4
    23        - uses: actions/setup-go@v4
    24          with:
    25            go-version: '^1.20.0'
    26  
    27        - name: setup tinygo
    28          uses: acifani/setup-tinygo@v1
    29          with:
    30            tinygo-version: 0.30.0
    31        - name: setup wasmtime for tinygo
    32          run: go install github.com/wasilibs/tools/cmd/wasmtime@e3baa6a6b2955f731f4490728b09fb87b35e27e9
    33  
    34        - run: go run mage.go lint
    35          if: ${{ startsWith(matrix.os, 'ubuntu-') }}
    36  
    37        - run: go run mage.go test
    38  
    39        - run: go run mage.go e2eGzip