Skip to content

Commit

Permalink
.cirrus.yml: reduce boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
tklauser committed Jan 4, 2024
1 parent 916002e commit 75a6ec6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ env:
CIRRUS_CLONE_DEPTH: 1
GO_VERSION: go1.21.5

freebsd_13_task:
.freebsd_task:
freebsd_instance:
image_family: freebsd-13-2
image_family: $IMAGE_FAMILY
install_script: |
pkg install -y go
GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
bin/${GO_VERSION} download
build_script: bin/${GO_VERSION} build -v ./...
test_script: bin/${GO_VERSION} test -race ./...

freebsd_13_task:
extends: .freebsd_task
variables:
IMAGE_FAMILY: freebsd-13.2

freebsd_14_task:
freebsd_instance:
image_family: freebsd-14-0
install_script: |
pkg install -y go
GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
bin/${GO_VERSION} download
build_script: bin/${GO_VERSION} build -v ./...
test_script: bin/${GO_VERSION} test -race ./...
extends: .freebsd_task
variables:
IMAGE_FAMILY: freebsd-14.0

0 comments on commit 75a6ec6

Please sign in to comment.