Skip to content

Commit 5cd64bc

Browse files
committed
fix(ci): bump dependency versions in CI
Signed-off-by: Adam Reese <[email protected]>
1 parent c2d4ef2 commit 5cd64bc

File tree

18 files changed

+50
-43
lines changed

18 files changed

+50
-43
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
1212
test-integration:

examples/http-outbound/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 .`
2020
Working 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 .`
2222
Working directory: "./tinygo-hello"
2323
Finished building all Spin components
2424
```

examples/http-outbound/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ allowed_outbound_hosts = [
2222
]
2323
[component.hello.build]
2424
workdir = "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]
2828
source = "http-to-same-app/main.wasm"
2929
# Use self to make outbound requests to components in the same Spin application.
3030
allowed_outbound_hosts = ["http://self"]
3131
[component.http-to-same-app.build]
3232
workdir = "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 ."

examples/http-router/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ component = "hello"
1313
[component.hello]
1414
source = "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 ."

examples/http/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ component = "hello"
1313
[component.hello]
1414
source = "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 ."

examples/key-value/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ component = "key-value"
1313
source = "main.wasm"
1414
key_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 ."

examples/llm/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ source = "main.wasm"
1515
allowed_outbound_hosts = []
1616
ai_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 ."
1919
watch = ["**/*.go", "go.mod"]

examples/mysql-outbound/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ environment = { DB_URL = "mysql://spin:[email protected]/spin_dev" }
1515
source = "main.wasm"
1616
allowed_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 ."
1919
watch = ["**/*.go", "go.mod"]

examples/pg-outbound/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ environment = { DB_URL = "host=localhost user=postgres dbname=spin_dev" }
1515
source = "main.wasm"
1616
allowed_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 ."
1919
watch = ["**/*.go", "go.mod"]

0 commit comments

Comments
 (0)