ci: Add NetBSD job #39
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build-netbsd: | |
| runs-on: ubuntu-latest | |
| name: build • netbsd | |
| defaults: | |
| run: | |
| shell: netbsd {0} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Start NetBSD VM | |
| uses: vmactions/netbsd-vm@v1 | |
| with: | |
| prepare: | | |
| pkg_add cmake ninja-build gcc14 pkg-config capnproto bash | |
| sync: 'rsync' | |
| copyback: false | |
| - name: Run CI script | |
| run: | | |
| cd ${{ github.workspace }} | |
| CI_CONFIG="ci/configs/netbsd.bash" bash ci/scripts/ci.sh | |
| build-openbsd: | |
| runs-on: ubuntu-latest | |
| name: build • openbsd | |
| defaults: | |
| run: | |
| shell: openbsd {0} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Start OpenBSD VM | |
| uses: vmactions/openbsd-vm@v1 | |
| with: | |
| prepare: | | |
| pkg_add -v cmake ninja git python bash | |
| run: | | |
| git clone --depth=1 https://codeberg.org/OpenBSD/ports.git /usr/ports | |
| sync: 'rsync' | |
| copyback: false | |
| - name: Install capnproto | |
| run: | | |
| cd /usr/ports/devel/capnproto/ | |
| make install | |
| - name: Run CI script | |
| run: | | |
| cd ${{ github.workspace }} | |
| CI_CONFIG="ci/configs/openbsd.bash" bash ci/scripts/ci.sh | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: [default, llvm, gnu32, sanitize, olddeps] | |
| name: build • ${{ matrix.config }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 # 2025-05-27, from https://github.com/cachix/install-nix-action/tags | |
| with: | |
| nix_path: nixpkgs=channel:nixos-25.05 # latest release | |
| - name: Run CI script | |
| env: | |
| CI_CONFIG: ci/configs/${{ matrix.config }}.bash | |
| run: ci/scripts/run.sh |