From fd72d978260779f6ed80bcc3486335b3331e9847 Mon Sep 17 00:00:00 2001 From: Benjamin Cane Date: Sun, 16 Jun 2024 08:42:09 -0700 Subject: [PATCH] trying something to make sure we are using the right tinygo --- .github/workflows/go-test.yml | 1 + hello/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index d3f7886..bbb04b2 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -32,6 +32,7 @@ jobs: tinygo_version=0.29.0 curl -sSL https://github.com/tinygo-org/tinygo/releases/download/v${tinygo_version}/tinygo${tinygo_version}.linux-amd64.tar.gz | sudo tar -C /usr/local -xzf - echo "TINYGOROOT=/usr/local/tinygo" >> $GITHUB_ENV + echo "TINYGOPATH=/usr/local/tinygo/bin/" >> $GITHUB_ENV echo "/usr/local/tinygo/bin" >> $GITHUB_PATH - name: Build Wasm diff --git a/hello/Makefile b/hello/Makefile index f68b3b4..760102e 100644 --- a/hello/Makefile +++ b/hello/Makefile @@ -2,4 +2,4 @@ build: @echo "----------" @echo "Building Go wasm Guest" @echo "----------" - tinygo build -o hello.wasm -scheduler=none --no-debug -target=wasi main.go + ${TINYGOPATH}tinygo build -o hello.wasm -scheduler=none --no-debug -target=wasi main.go