File tree 9 files changed +10
-15
lines changed
actions/spin-ci-dependencies
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}
9
9
# && apt-get -y install --no-install-recommends <your-package-list-here>
10
10
11
11
# 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"
13
13
RUN curl -sL "$GO_URL" | tar -xzf - -C /usr/local
14
14
ENV PATH "$PATH:/usr/local/go/bin"
15
15
16
16
# 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"
18
18
RUN curl -sL "$TINYGO_URL" -o tinygo_amd64.deb && dpkg -i tinygo_amd64.deb && rm tinygo_amd64.deb
19
19
20
20
# 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:
46
46
type : bool
47
47
golang-version :
48
48
description : ' golang version to setup'
49
- default : ' 1.20 '
49
+ default : ' 1.22 '
50
50
required : false
51
51
type : string
52
52
@@ -68,7 +68,7 @@ inputs:
68
68
type : bool
69
69
tinygo-version :
70
70
description : ' tinygo version to setup'
71
- default : ' v0.27 .0'
71
+ default : ' v0.35 .0'
72
72
required : false
73
73
type : string
74
74
Original file line number Diff line number Diff line change @@ -200,10 +200,10 @@ jobs:
200
200
- uses : goto-bus-stop/setup-zig@v2
201
201
- uses : actions/setup-go@v4
202
202
with :
203
- go-version : ' 1.20.1 '
203
+ go-version : ' 1.22 '
204
204
- uses : acifani/setup-tinygo@v2
205
205
with :
206
- tinygo-version : ' 0.27 .0'
206
+ tinygo-version : ' 0.35 .0'
207
207
- uses : actions/setup-node@v3
208
208
with :
209
209
node-version : ' 20.x'
Original file line number Diff line number Diff line change 1
1
module github.com/{{project-name | snake_case}}
2
2
3
- go 1.20
3
+ go 1.22
4
4
5
5
require github.com/fermyon/spin/sdk/go/v2 v2.2.0
6
6
Original file line number Diff line number Diff line change @@ -13,5 +13,3 @@ func init() {
13
13
fmt .Fprintln (w , "Hello Fermyon!" )
14
14
})
15
15
}
16
-
17
- func main () {}
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ component = "{{project-name | kebab_case}}"
14
14
source = " main.wasm"
15
15
allowed_outbound_hosts = []
16
16
[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 . "
18
18
watch = [" **/*.go" , " go.mod" ]
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ component = "{{project-name | kebab_case}}"
6
6
source = "{{ output-path }}/main.wasm"
7
7
allowed_outbound_hosts = []
8
8
[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 . "
10
10
workdir = "{{ output-path }}"
11
11
watch = ["**/*.go", "go.mod"]
Original file line number Diff line number Diff line change 1
1
module github.com/{{project-name | snake_case}}
2
2
3
- go 1.20
3
+ go 1.22
4
4
5
5
require 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() {
14
14
return nil
15
15
})
16
16
}
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