[misc] Update FreeBSD workflow (#3638)

Update FreeBSD release to 14.2 and download Go package directly since port wasn't finding the package to install
This commit is contained in:
Maycon Santos 2025-04-08 09:15:09 +02:00 committed by GitHub
parent 87e600a4f3
commit 4db78db49a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/...