name: BSD, Haiku, OmniOS on: # push only on master: a branch push and its pull request otherwise run # every job twice on the same commit. paths-ignore skips work the change # cannot affect - no job here builds anything # under contrib/, and prose does not change decoded output. push: branches: [master] paths-ignore: - 'docs/**' - '**.md' - 'LICENSE' - '.gitignore' - 'contrib/**' pull_request: paths-ignore: - 'docs/**' - '**.md' - 'LICENSE' - '.gitignore' - 'contrib/**' # Cancel superseded runs: a force-push otherwise leaves the previous commit's # jobs running to completion alongside the new ones. Never cancels master. concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} jobs: build: runs-on: ubuntu-latest # Cap a wedged runner. The slowest legitimate job here finishes well # inside this; without it a VM that fails to boot runs to GitHub's # six-hour maximum, which has happened. timeout-minutes: 30 strategy: fail-fast: false matrix: operating_system: [ dragonflybsd, freebsd, haiku, midnightbsd, netbsd, omnios, openbsd ] architecture: [ arm64, x86-64 ] include: - operating_system: dragonflybsd version: '6.4.2' pkginstall: | sudo pkg update sudo pkg install -y cmake ninja - operating_system: freebsd version: '15.1' pkginstall: | sudo pkg upgrade -y sudo pkg install -y cmake ninja - operating_system: haiku version: 'r1beta6' pkginstall: | pkgman update -y pkgman install -y cmake ninja - operating_system: midnightbsd version: '4.0.4' pkginstall: | sudo mport upgrade sudo mport install cmake ninja || true - operating_system: netbsd version: '11.0' pkginstall: | sudo pkgin update sudo pkgin -y install clang cmake ninja-build - operating_system: omnios version: 'r151058' pkginstall: | sudo pkg refresh sudo pkg install build-essential cmake ninja - operating_system: openbsd version: '7.9' pkginstall: | sudo pkg_add -u sudo pkg_add cmake ninja exclude: - operating_system: dragonflybsd architecture: arm64 - operating_system: haiku architecture: arm64 - operating_system: midnightbsd architecture: arm64 - operating_system: omnios architecture: arm64 steps: - uses: actions/checkout@v7 - name: Start VM uses: cross-platform-actions/action@v1 with: operating_system: ${{ matrix.operating_system }} architecture: ${{ matrix.architecture }} version: ${{ matrix.version }} - name: Set up build environment run: ${{ matrix.pkginstall }} shell: cpa.sh {0} - name: Configure CMake run: cmake -B build -DCMAKE_BUILD_TYPE=Release -G Ninja shell: cpa.sh {0} - name: Build run: cmake --build build --config Release shell: cpa.sh {0}