Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/actions/toolchains/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
description: TinyGo release, or empty where no Go app is built
required: false
default: ""
go:
description: Go release TinyGo builds against, within the range it supports
required: false
default: stable

runs:
using: composite
Expand Down Expand Up @@ -43,6 +47,13 @@ runs:
curl -fsSL "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${version%.*}/$name.tar.gz" | tar -xz
sudo mv "$name" /opt/wasi-sdk

# TinyGo compiles against a Go toolchain, and accepts only a range of
# releases, which is narrower than whatever a runner image happens to carry.
- uses: actions/setup-go@v7
if: inputs.tinygo != ''
with:
go-version: ${{ inputs.go }}

- name: Install TinyGo
if: inputs.tinygo != ''
shell: sh
Expand All @@ -61,5 +72,5 @@ runs:
wasmtime --version
wasm-opt --version
/opt/wasi-sdk/bin/clang --version | head -n 1
command -v tinygo >/dev/null && tinygo version || true
command -v tinygo >/dev/null && tinygo version && go version || true
python3 --version
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
binaryen: "132"
wasi-sdk: "33.0"
tinygo: "0.42.0"
go: "1.27"

- name: Build, run and compare
run: sh tools/check.sh $(ls apps | grep -v -- '-python$')
Expand Down
Loading