From 86a1b8184c5fc24cd5c79d0f1f5d336ca78baa4e Mon Sep 17 00:00:00 2001 From: Vadym Vikulin Date: Thu, 21 Dec 2023 11:38:44 +0200 Subject: [PATCH] Added FreeBSD build test --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29dd0f2ae..2f04d9ce6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,9 +125,34 @@ jobs: - name: Unit tests run: go test -v ./... + build-freebsd: + strategy: + fail-fast: false + matrix: + goversion: ["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 RiV-mesh + run: go build -v ./... + env: + GOOS: ${{ matrix.goos }} + tests-ok: name: All tests passed - needs: [lint, codeql, build-linux, build-windows, build-macos] + needs: [lint, codeql, build-linux, build-windows, build-macos, build-freebsd] runs-on: ubuntu-latest if: ${{ !cancelled() }} steps: