From 1728aa8ee7830ae92e69957d5ca6972a8880ee04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 17 Sep 2026 15:03:24 +0300 Subject: [PATCH] ci: install the Go release TinyGo supports Co-authored-by: Claude Opus 5 (1M context) --- .github/actions/toolchains/action.yml | 13 ++++++++++++- .github/workflows/ci.yml | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/actions/toolchains/action.yml b/.github/actions/toolchains/action.yml index c51e831..166bb84 100644 --- a/.github/actions/toolchains/action.yml +++ b/.github/actions/toolchains/action.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa3b898..6e9aa65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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$')