Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

deprecate: update the README before archive #5

deprecate: update the README before archive

deprecate: update the README before archive #5

Workflow file for this run

name: "Pull Request Test"
on:
pull_request:
branches: [ "master" ]
env:
CGO_ENABLED: 0
jobs:
go_test_all:
name: "go build && go test"
runs-on: ubuntu-latest
strategy:
matrix:
go: [ "1.21.x", "1.22.x" ] # we support the latest 2 stable versions of Go
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- run: go version
- name: Build and Test
run: |
go build -v ./...
go test -v ./...
tinygo_build_v0:
name: "Build tinygo example ${{ matrix.examples }}"
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
go: [ "1.20.x", "1.21.x" ] # we support the latest 2 stable versions of Go. TODO: bump to 1.22.x once tinygo supports it.
examples: [ "plain", "reverse", "utls" ] # Add more examples here, corresponding directories must exist under tinygo/v0/examples
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: acifani/setup-tinygo@v2
with:
tinygo-version: '0.30.0'
- name: Build
run: |
tinygo build -o ${{ matrix.examples }}.wasm -target=wasi -tags=purego ./tinygo/v0/examples/${{ matrix.examples }}/