Skip to content

Commit

Permalink
added ci test for bsd systems
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Apr 27, 2024
1 parent e4a25b8 commit d8806dd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,36 @@ jobs:
CGO_ENABLED: 1 # go test -race requires cgo

- run: go build -tags osusergo,netgo -ldflags="-s -w -X main.version=$(git describe --tags) -X main.date=$(date --iso-8601=seconds)"

# Please note BSD support is offered on a best-effort basis, this check is not blocking but for us to be aware of issues.
test-bsd:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- name: openbsd
architecture: x86-64
version: '7.5'

- name: openbsd
architecture: arm64
version: '7.5'
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Test on ${{ matrix.os.name }}
uses: cross-platform-actions/action@b2e15da1e667187766fff4945d20b98ac7055576 # v0.24.0
env:
GO_VERSION: 1.22.1
with:
environment_variables: GO_VERSION
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: ${{ matrix.os.version }}
shell: bash
memory: 1G
cpu_count: 1
run: |
sudo pkg_add -u
sudo pkg_add gmake go%${GO_VERSION}
gmake unittest GO_TEST_FLAGS="-tags test_sqlite_only"

0 comments on commit d8806dd

Please sign in to comment.