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