diff --git a/.github/workflows/golang-test-freebsd.yml b/.github/workflows/golang-test-freebsd.yml index e1c688b1b..32ceb36db 100644 --- a/.github/workflows/golang-test-freebsd.yml +++ b/.github/workflows/golang-test-freebsd.yml @@ -22,14 +22,20 @@ jobs: with: usesh: true copyback: false - release: "14.1" + release: "14.2" prepare: | - pkg install -y go pkgconf xorg + pkg install -y curl pkgconf xorg + LATEST_VERSION=$(curl -s https://go.dev/VERSION?m=text|head -n 1) + GO_TARBALL="$LATEST_VERSION.freebsd-amd64.tar.gz" + GO_URL="https://go.dev/dl/$GO_TARBALL" + curl -vLO "$GO_URL" + tar -C /usr/local -vxzf "$GO_TARBALL" # -x - to print all executed commands # -e - to faile on first error run: | set -e -x + export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin time go build -o netbird client/main.go # check all component except management, since we do not support management server on freebsd time go test -timeout 1m -failfast ./base62/...