|
| 1 | +name: BSD |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + paths-ignore: |
| 8 | + - '**.md' |
| 9 | + - 'docs/**' |
| 10 | + - 'scripts/**' |
| 11 | + pull_request: |
| 12 | + branches: |
| 13 | + - master |
| 14 | + paths-ignore: |
| 15 | + - '**.md' |
| 16 | + - 'docs/**' |
| 17 | + - 'scripts/**' |
| 18 | + |
| 19 | +jobs: |
| 20 | + freebsd: |
| 21 | + runs-on: ubuntu-latest |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + build_type: [ Debug, Release ] |
| 25 | + steps: |
| 26 | + - name: Checkout code |
| 27 | + uses: actions/checkout@v4 |
| 28 | + |
| 29 | + - name: FreeBSD Build and Test (${{ matrix.build_type }}) |
| 30 | + uses: vmactions/freebsd-vm@v1 |
| 31 | + with: |
| 32 | + freebsd-version: '14.2' |
| 33 | + architecture: 'x86_64' |
| 34 | + mem: 16384 |
| 35 | + usesh: true |
| 36 | + prepare: | |
| 37 | + pkg install -y cmake |
| 38 | + run: | |
| 39 | + cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_STANDARD=17 -DQUILL_VERBOSE_MAKEFILE=ON -DQUILL_BUILD_TESTS=ON -DQUILL_BUILD_EXAMPLES=ON "$GITHUB_WORKSPACE" |
| 40 | + cmake --build . --config ${{ matrix.build_type }} --parallel 4 |
| 41 | + ctest --build-config ${{ matrix.build_type }} --parallel 4 --output-on-failure |
| 42 | +
|
| 43 | + netbsd: |
| 44 | + runs-on: ubuntu-latest |
| 45 | + strategy: |
| 46 | + matrix: |
| 47 | + build_type: [ Debug, Release ] |
| 48 | + steps: |
| 49 | + - name: Checkout code |
| 50 | + uses: actions/checkout@v4 |
| 51 | + |
| 52 | + - name: NetBSD Build and Test (${{ matrix.build_type }}) |
| 53 | + uses: vmactions/netbsd-vm@v1 |
| 54 | + with: |
| 55 | + netbsd-version: '10.0' |
| 56 | + architecture: 'x86_64' |
| 57 | + mem: 16384 |
| 58 | + usesh: true |
| 59 | + prepare: | |
| 60 | + pkgin install -y cmake |
| 61 | + run: | |
| 62 | + cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_STANDARD=17 -DQUILL_VERBOSE_MAKEFILE=ON -DQUILL_BUILD_TESTS=ON -DQUILL_BUILD_EXAMPLES=ON "$GITHUB_WORKSPACE" |
| 63 | + cmake --build . --config ${{ matrix.build_type }} --parallel 4 |
| 64 | + ctest --build-config ${{ matrix.build_type }} --parallel 4 --output-on-failure |
| 65 | +
|
| 66 | + openbsd: |
| 67 | + runs-on: ubuntu-latest |
| 68 | + strategy: |
| 69 | + matrix: |
| 70 | + build_type: [ Debug, Release ] |
| 71 | + steps: |
| 72 | + - name: Checkout code |
| 73 | + uses: actions/checkout@v4 |
| 74 | + |
| 75 | + - name: OpenBSD Build and Test (${{ matrix.build_type }}) |
| 76 | + uses: vmactions/openbsd-vm@v1 |
| 77 | + with: |
| 78 | + openbsd-version: '7.5' |
| 79 | + architecture: 'x86_64' |
| 80 | + mem: 16384 |
| 81 | + usesh: true |
| 82 | + prepare: | |
| 83 | + pkg_add cmake |
| 84 | + run: | |
| 85 | + cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_STANDARD=17 -DQUILL_VERBOSE_MAKEFILE=ON -DQUILL_BUILD_TESTS=ON -DQUILL_BUILD_EXAMPLES=ON "$GITHUB_WORKSPACE" |
| 86 | + cmake --build . --config ${{ matrix.build_type }} --parallel 4 |
| 87 | + ctest --build-config ${{ matrix.build_type }} --parallel 4 --output-on-failure |
| 88 | +
|
| 89 | + dragonfly: |
| 90 | + runs-on: ubuntu-latest |
| 91 | + strategy: |
| 92 | + matrix: |
| 93 | + build_type: [ Debug, Release ] |
| 94 | + steps: |
| 95 | + - name: Checkout code |
| 96 | + uses: actions/checkout@v4 |
| 97 | + |
| 98 | + - name: DragonFly Build and Test (${{ matrix.build_type }}) |
| 99 | + uses: vmactions/dragonfly-vm@v1 |
| 100 | + with: |
| 101 | + dragonfly-version: '6.4.0' |
| 102 | + architecture: 'x86_64' |
| 103 | + mem: 16384 |
| 104 | + usesh: true |
| 105 | + prepare: | |
| 106 | + pkg install -y cmake |
| 107 | + run: | |
| 108 | + cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_STANDARD=17 -DQUILL_VERBOSE_MAKEFILE=ON -DQUILL_BUILD_TESTS=ON -DQUILL_BUILD_EXAMPLES=ON "$GITHUB_WORKSPACE" |
| 109 | + cmake --build . --config ${{ matrix.build_type }} --parallel 4 |
| 110 | + ctest --build-config ${{ matrix.build_type }} --parallel 4 --output-on-failure |
0 commit comments