Skip to content

Commit 3bb0ed6

Browse files
authored
ci: update gitlab ci (#4)
- use go 1.23 - add arm64 builds
1 parent aa47229 commit 3bb0ed6

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.gitlab-ci.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
stages:
2+
- test
23
- build
34

5+
test:
6+
stage: test
7+
image: golang:1.23-bullseye
8+
script:
9+
- go test ./...
10+
411
build:
512
stage: build
6-
image: golang:1.18-stretch
13+
image: golang:1.23-bullseye
714
variables:
815
CGO_ENABLED: 0
916
script:
10-
- cd client
17+
- cd cmd/tunnel-client
1118
- go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-linux-amd64
19+
- GOOS=linux GOARCH=arm64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-linux-arm64
1220
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-darwin-amd64
21+
- GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-darwin-arm64
1322
- GOOS=windows GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-amd64.exe
1423
artifacts:
1524
paths:
16-
- client/tunnel-client-linux-amd64
17-
- client/tunnel-client-darwin-amd64
18-
- client/tunnel-client-amd64.exe
19-
only:
20-
- master
25+
- cmd/tunnel-client/tunnel-client-linux-amd64
26+
- cmd/tunnel-client/tunnel-client-linux-arm64
27+
- cmd/tunnel-client/tunnel-client-darwin-amd64
28+
- cmd/tunnel-client/tunnel-client-darwin-arm64
29+
- cmd/tunnel-client/tunnel-client-amd64.exe

0 commit comments

Comments
 (0)