diff --git a/.github/workflows/golang-test-freebsd.yml b/.github/workflows/golang-test-freebsd.yml index 15fc6a729ad..6cb5f7427fa 100644 --- a/.github/workflows/golang-test-freebsd.yml +++ b/.github/workflows/golang-test-freebsd.yml @@ -13,7 +13,7 @@ concurrency: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Test in FreeBSD @@ -21,19 +21,15 @@ jobs: uses: vmactions/freebsd-vm@v1 with: usesh: true + copyback: false + release: "14.1" prepare: | - pkg install -y curl - pkg install -y git + pkg install -y go + # -x - to print all executed commands + # -e - to faile on first error run: | - set -x - curl -o go.tar.gz https://go.dev/dl/go1.21.11.freebsd-amd64.tar.gz -L - tar zxf go.tar.gz - mv go /usr/local/go - ln -s /usr/local/go/bin/go /usr/local/bin/go - go mod tidy - go test -timeout 5m -p 1 ./iface/... - go test -timeout 5m -p 1 ./client/... - cd client - go build . - cd .. \ No newline at end of file + set -e -x + go build -o netbird client/main.go + go test -timeout 5m -p 1 -failfast ./iface/... + go test -timeout 5m -p 1 -failfast ./client/... diff --git a/client/ui/font_bsd.go b/client/ui/font_bsd.go index 41bccceca6c..84cb5993ddc 100644 --- a/client/ui/font_bsd.go +++ b/client/ui/font_bsd.go @@ -1,4 +1,4 @@ -//go:build darwin || dragonfly || freebsd || netbsd || openbsd +//go:build darwin package main