f535537f |
1 | name: BSD |
2 | |
3 | on: [push, pull_request] |
4 | |
5 | jobs: |
6 | build: |
7 | runs-on: ubuntu-latest |
8 | strategy: |
9 | matrix: |
10 | operating_system: [ freebsd, netbsd, openbsd ] |
11 | architecture: [ arm64, x86-64 ] |
12 | include: |
13 | - operating_system: freebsd |
14 | version: '14.0' |
15 | pkginstall: sudo pkg install -y cmake git ninja pkgconf |
16 | - operating_system: netbsd |
17 | version: '10.0' |
18 | pkginstall: sudo pkgin update && sudo pkgin -y install cmake gcc12 git ninja-build pkgconf && export PATH=/usr/pkg/gcc12/bin:$PATH |
19 | - operating_system: openbsd |
20 | version: '7.5' |
21 | pkginstall: sudo pkg_add cmake git ninja pkgconf |
22 | |
23 | steps: |
24 | - uses: actions/checkout@v4 |
25 | |
26 | - uses: cross-platform-actions/action@v0.24.0 |
27 | with: |
28 | operating_system: ${{ matrix.operating_system }} |
29 | architecture: ${{ matrix.architecture }} |
30 | version: ${{ matrix.version }} |
31 | run: | |
32 | ${{ matrix.pkginstall }} |
33 | cmake -B build -DCMAKE_BUILD_TYPE=Release -G Ninja |
34 | cmake --build build --config Release |