Skip to content

Commit 76c30c6

Browse files
authored
Merge pull request #10 from vdice/fix/build-cmd
fix(Makefile): update build command
2 parents ab6ace1 + 6931cf7 commit 76c30c6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
- name: "Install Go"
1818
uses: actions/setup-go@v3
1919
with:
20-
go-version: '1.17'
20+
go-version: '1.24'
2121

2222
- name: "Install TinyGo"
2323
run: |
24-
wget https://github.com/tinygo-org/tinygo/releases/download/v0.25.0/tinygo_0.25.0_amd64.deb
25-
sudo dpkg -i tinygo_0.25.0_amd64.deb
24+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.37.0/tinygo_0.37.0_amd64.deb
25+
sudo dpkg -i tinygo_0.37.0_amd64.deb
2626
2727
- name: Make
2828
env:

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
- name: "Install Go"
2020
uses: actions/setup-go@v3
2121
with:
22-
go-version: '1.17'
22+
go-version: '1.24'
2323

2424
- name: "Install TinyGo"
2525
run: |
26-
wget https://github.com/tinygo-org/tinygo/releases/download/v0.25.0/tinygo_0.25.0_amd64.deb
27-
sudo dpkg -i tinygo_0.25.0_amd64.deb
26+
wget https://github.com/tinygo-org/tinygo/releases/download/v0.37.0/tinygo_0.37.0_amd64.deb
27+
sudo dpkg -i tinygo_0.37.0_amd64.deb
2828
2929
- name: Make
3030
env:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ENABLE_WASM_OPT ?= true
22

33
.PHONY: build
44
build:
5-
tinygo build -target=wasi -gc=leaking -o redirect.wasm ./
5+
tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o redirect.wasm ./
66
ifeq ($(ENABLE_WASM_OPT),true)
77
wasm-opt -Os -o redirect.wasm redirect.wasm
88
endif

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/fermyon/spin-redirect
22

3-
go 1.17
3+
go 1.24
44

55
require github.com/fermyon/spin/sdk/go v1.4.2
66

0 commit comments

Comments
 (0)