Update dependencies, test cross-builds for FreeBSD and OpenBSD in CI

This commit is contained in:
Neil Alexander 2023-10-27 23:15:34 +01:00
parent 1ac3d540e7
commit ea6ccf552f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 29 additions and 3 deletions

View file

@ -119,6 +119,32 @@ jobs:
- name: Unit tests
run: go test -v ./...
build-freebsd:
strategy:
fail-fast: false
matrix:
goversion: ["1.20", "1.21"]
goos:
- freebsd
- openbsd
name: Build (Cross ${{ matrix.goos }}, Go ${{ matrix.goversion }})
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goversion }}
- name: Build Yggdrasil
run: go build -v ./...
env:
GOOS: ${{ matrix.goos }}
tests-ok:
name: All tests passed
needs: [lint, codeql, build-linux, build-windows, build-macos]