File tree Expand file tree Collapse file tree 18 files changed +50
-43
lines changed Expand file tree Collapse file tree 18 files changed +50
-43
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 @@ -4,9 +4,9 @@ VERSION = 2.3.0-pre0
44# Test
55# ----------------------------------------------------------------------
66.PHONY : test
7- test : test
8- tinygo test -target=wasi -gc=leaking -v ./http
9- tinygo test -target=wasi -gc=leaking -v ./redis
7+ test :
8+ tinygo test -target=wasip1 -gc=leaking -buildmode=c-shared -v ./http
9+ tinygo test -target=wasip1 -gc=leaking -buildmode=c-shared -v ./redis
1010
1111.PHONY : test-integration
1212test-integration :
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ Building this as a WebAssembly module can be done using the `tinygo` compiler:
1616
1717``` shell
1818$ spin build
19- Building component outbound-http-to-same-app with ` tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go `
19+ Building component outbound-http-to-same-app with ` tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . `
2020Working directory: " ./outbound-http-to-same-app"
21- Building component tinygo-hello with ` tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go `
21+ Building component tinygo-hello with ` tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . `
2222Working directory: " ./tinygo-hello"
2323Finished building all Spin components
2424```
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ allowed_outbound_hosts = [
2222]
2323[component .hello .build ]
2424workdir = " hello"
25- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
25+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . "
2626
2727[component .http-to-same-app ]
2828source = " http-to-same-app/main.wasm"
2929# Use self to make outbound requests to components in the same Spin application.
3030allowed_outbound_hosts = [" http://self" ]
3131[component .http-to-same-app .build ]
3232workdir = " http-to-same-app"
33- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
33+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . "
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ component = "hello"
1313[component .hello ]
1414source = " main.wasm"
1515[component .hello .build ]
16- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
16+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . "
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ component = "hello"
1313[component .hello ]
1414source = " main.wasm"
1515[component .hello .build ]
16- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
16+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . "
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ component = "key-value"
1313source = " main.wasm"
1414key_value_stores = [" default" ]
1515[component .key-value .build ]
16- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
16+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . "
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ source = "main.wasm"
1515allowed_outbound_hosts = []
1616ai_models = [" llama2-chat" , " all-minilm-l6-v2" ]
1717[component .llm .build ]
18- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
18+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared - no-debug -o main.wasm . "
1919watch = [" **/*.go" , " go.mod" ]
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ environment = { DB_URL = "mysql://spin:
[email protected] /spin_dev" }
1515source = " main.wasm"
1616allowed_outbound_hosts = [" mysql://127.0.0.1" ]
1717[component .mysql .build ]
18- command = " tinygo build -target=wasi -gc=leaking -o main.wasm main.go "
18+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug - o main.wasm . "
1919watch = [" **/*.go" , " go.mod" ]
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ environment = { DB_URL = "host=localhost user=postgres dbname=spin_dev" }
1515source = " main.wasm"
1616allowed_outbound_hosts = [" postgres://localhost" ]
1717[component .pg-outbound .build ]
18- command = " tinygo build -target=wasi -gc=leaking -o main.wasm main.go "
18+ command = " tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug - o main.wasm . "
1919watch = [" **/*.go" , " go.mod" ]
You can’t perform that action at this time.
0 commit comments