4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-08-02 17:23:46 +00:00

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
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]