Skip to content

Commit dc7a8dc

Browse files
committed
ci: fix cache
1 parent 12b37ca commit dc7a8dc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build-debug.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ jobs:
5656
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
5757

5858
- name: Build without -no-debug (debug version)
59-
run: tinygo build -target=wasip1 -buildmode=c-shared -scheduler asyncify -o plugin.wasm .
59+
run: |
60+
export TINYGOROOT=/usr/local/lib/tinygo
61+
tinygo build -target=wasip1 -buildmode=c-shared -scheduler asyncify -o plugin.wasm .
6062
6163
- name: Package debug version
6264
run: zip plugin-debug-${{ steps.vars.outputs.sha_short }}.zip plugin.wasm plugin.json

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,17 @@ jobs:
4949
cp -r /usr/local/lib/tinygo ~/tinygo-cache/lib/
5050
5151
- name: Build with -no-debug
52-
run: tinygo build -target=wasip1 -no-debug -buildmode=c-shared -scheduler asyncify -o plugin.wasm .
52+
run: |
53+
export TINYGOROOT=/usr/local/lib/tinygo
54+
tinygo build -target=wasip1 -no-debug -buildmode=c-shared -scheduler asyncify -o plugin.wasm .
5355
5456
- name: Package release version
5557
run: zip plugin-release-${{ github.ref_name }}.zip plugin.wasm plugin.json
5658

5759
- name: Build without -no-debug (debug version)
58-
run: tinygo build -target=wasip1 -buildmode=c-shared -scheduler asyncify -o plugin.wasm .
60+
run: |
61+
export TINYGOROOT=/usr/local/lib/tinygo
62+
tinygo build -target=wasip1 -buildmode=c-shared -scheduler asyncify -o plugin.wasm .
5963
6064
- name: Package debug version
6165
run: zip plugin-debug-${{ github.ref_name }}.zip plugin.wasm plugin.json

0 commit comments

Comments
 (0)