File tree Expand file tree Collapse file tree 9 files changed +10
-15
lines changed
actions/spin-ci-dependencies Expand file tree Collapse file tree 9 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ FROM mcr.microsoft.com/vscode/devcontainers/rust:0-${VARIANT}
99# && apt-get -y install --no-install-recommends <your-package-list-here>
1010
1111# Go installation, see https://go.dev/doc/install
12- ARG GO_URL="https://go.dev/dl/go1.20.1 .linux-amd64.tar.gz"
12+ ARG GO_URL="https://go.dev/dl/go1.22.0 .linux-amd64.tar.gz"
1313RUN curl -sL "$GO_URL" | tar -xzf - -C /usr/local
1414ENV PATH "$PATH:/usr/local/go/bin"
1515
1616# TinyGo installation, see https://tinygo.org/getting-started/install/linux/ for instructions
17- ARG TINYGO_URL="https://github.com/tinygo-org/tinygo/releases/download/v0.27 .0/tinygo_0.27 .0_amd64.deb"
17+ ARG TINYGO_URL="https://github.com/tinygo-org/tinygo/releases/download/v0.35 .0/tinygo_0.35 .0_amd64.deb"
1818RUN curl -sL "$TINYGO_URL" -o tinygo_amd64.deb && dpkg -i tinygo_amd64.deb && rm tinygo_amd64.deb
1919
2020# Install the gopls Go Language Server, see https://github.com/golang/tools/tree/master/gopls
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ inputs:
4646 type : bool
4747 golang-version :
4848 description : ' golang version to setup'
49- default : ' 1.20 '
49+ default : ' 1.22 '
5050 required : false
5151 type : string
5252
@@ -68,7 +68,7 @@ inputs:
6868 type : bool
6969 tinygo-version :
7070 description : ' tinygo version to setup'
71- default : ' v0.27 .0'
71+ default : ' v0.35 .0'
7272 required : false
7373 type : string
7474
Original file line number Diff line number Diff line change @@ -200,10 +200,10 @@ jobs:
200200 - uses : goto-bus-stop/setup-zig@v2
201201 - uses : actions/setup-go@v4
202202 with :
203- go-version : ' 1.20.1 '
203+ go-version : ' 1.22 '
204204 - uses : acifani/setup-tinygo@v2
205205 with :
206- tinygo-version : ' 0.27 .0'
206+ tinygo-version : ' 0.35 .0'
207207 - uses : actions/setup-node@v3
208208 with :
209209 node-version : ' 20.x'
Original file line number Diff line number Diff line change 11module github.com/{{project-name | snake_case}}
22
3- go 1.20
3+ go 1.22
44
55require github.com/fermyon/spin/sdk/go/v2 v2.2.0
66
Original file line number Diff line number Diff line change @@ -13,5 +13,3 @@ func init() {
1313 fmt .Fprintln (w , "Hello Fermyon!" )
1414 })
1515}
16-
17- func main () {}
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ component = "{{project-name | kebab_case}}"
1414source = " main.wasm"
1515allowed_outbound_hosts = []
1616[component .{{project-name | kebab_case}} .build ]
17- command = " tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
17+ command = " tinygo build -target=wasip1 -gc=leaking -scheduler=none -buildmode=c-shared - no-debug -o main.wasm . "
1818watch = [" **/*.go" , " go.mod" ]
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ component = "{{project-name | kebab_case}}"
66source = "{{ output-path }}/main.wasm"
77allowed_outbound_hosts = []
88[component.{{project-name | kebab_case}}.build]
9- command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go "
9+ command = "tinygo build -target=wasip1 -gc=leaking -scheduler=none -buildmode=c-shared - no-debug -o main.wasm . "
1010workdir = "{{ output-path }}"
1111watch = ["**/*.go", "go.mod"]
Original file line number Diff line number Diff line change 11module github.com/{{project-name | snake_case}}
22
3- go 1.20
3+ go 1.22
44
55require github.com/fermyon/spin/sdk/go/v2 v2.2.0
Original file line number Diff line number Diff line change @@ -14,6 +14,3 @@ func init() {
1414 return nil
1515 })
1616}
17-
18- // main functiion must be included for the compiler but is not executed.
19- func main () {}
You can’t perform that action at this time.
0 commit comments