File tree Expand file tree Collapse file tree 3 files changed +31
-24
lines changed Expand file tree Collapse file tree 3 files changed +31
-24
lines changed Original file line number Diff line number Diff line change @@ -16,22 +16,22 @@ jobs:
1616 - name : Setup Go
1717 uses : actions/setup-go@v5
1818 with :
19- go-version : ' 1.20 '
19+ go-version : ' 1.23 '
2020
2121 - name : Setup TinyGo
2222 uses : acifani/setup-tinygo@v2
2323 with :
24- tinygo-version : ' 0.28 .0'
24+ tinygo-version : ' 0.35 .0'
2525
2626 - name : Setup Spin
2727 uses : fermyon/actions/spin/setup@v1
2828 with :
29- version : " v2.6.0 "
29+ version : " v3.1.2 "
3030
3131 - name : Setup Wasmtime
3232 uses : bytecodealliance/actions/wasmtime/setup@v1
3333 with :
34- version : " 13 .0.1 "
34+ version : " 28 .0.0 "
3535
3636 - name : Run unit tests
3737 run : make test
Original file line number Diff line number Diff line change 1- spin_version = " 1"
1+ spin_manifest_version = 2
2+
3+ [application ]
4+ name = " spin-http-tinygo-test"
5+ version = " 0.1.0"
26authors = [
" Fermyon Engineering <[email protected] >" ]
37description = " A simple Spin application written in (Tiny)Go."
4- name = " spin-http-tinygo-test"
5- trigger = { type = " http" }
6- version = " 1.0.0"
78
8- [[component ]]
9- id = " http-tinygo-test"
10- source = " main.wasm"
11- [component .trigger ]
9+ [[trigger .http ]]
1210route = " /hello/..."
13- [component .build ]
14- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
11+ component = " http-test"
12+
13+ [component .http-test ]
14+ source = " main.wasm"
15+ allowed_outbound_hosts = []
16+ [component .http-test .build ]
17+ command = " tinygo build -target=wasip1 -gc=leaking -scheduler=none -buildmode=c-shared -no-debug -o main.wasm ."
18+ watch = [" **/*.go" , " go.mod" ]
Original file line number Diff line number Diff line change 1- spin_version = " 1"
1+ spin_manifest_version = 2
2+
3+ [application ]
4+ name = " spin-roundtrip-test"
5+ version = " 0.1.0"
26authors = [
" Fermyon Engineering <[email protected] >" ]
37description = " A simple Spin application written in (Tiny)Go."
4- name = " spin-roundtrip-test"
5- trigger = { type = " http" }
6- version = " 1.0.0"
78
8- [[component ]]
9- id = " http-roundtrip-test"
9+ [[trigger .http ]]
10+ route = " /hello/..."
11+ component = " http-roundtrip-test"
12+
13+ [component .http-roundtrip-test ]
1014source = " main.wasm"
1115allowed_outbound_hosts = [" https://example.com" ]
12- [component .trigger ]
13- route = " /hello/..."
14- [component .build ]
15- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
16+ [component .http-roundtrip-test .build ]
17+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm ."
18+ watch = [" **/*.go" , " go.mod" ]
You can’t perform that action at this time.
0 commit comments