Skip to content

Commit

Permalink
ci: update gitlab ci
Browse files Browse the repository at this point in the history
- use go 1.23
- add arm64 builds
  • Loading branch information
gartnera committed Dec 1, 2024
1 parent aa47229 commit edb22ea
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
stages:
- test
- build

test:
stage: test
image: golang:1.23-bullseye
script:
- go test ./...

build:
stage: build
image: golang:1.18-stretch
image: golang:1.23-bullseye
variables:
CGO_ENABLED: 0
script:
- cd client
- cd cmd/tunnel-client
- go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-linux-amd64
- GOOS=linux GOARCH=arm64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-linux-arm64
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-darwin-amd64
- GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-darwin-arm64
- GOOS=windows GOARCH=amd64 go build -ldflags "-X main.defaultServer=$DEFAULT_SERVER" -o tunnel-client-amd64.exe
artifacts:
paths:
- client/tunnel-client-linux-amd64
- client/tunnel-client-darwin-amd64
- client/tunnel-client-amd64.exe
only:
- master
- cmd/tunnel-client/tunnel-client-linux-amd64
- cmd/tunnel-client/tunnel-client-linux-arm64
- cmd/tunnel-client/tunnel-client-darwin-amd64
- cmd/tunnel-client/tunnel-client-darwin-arm64
- cmd/tunnel-client/tunnel-client-amd64.exe

0 comments on commit edb22ea

Please sign in to comment.