ci: add NetBSD build workflow #4
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: netbsd | |
| permissions: | |
| contents: read | |
| on: [push, pull_request] | |
| jobs: | |
| netbsd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v7 | |
| - name: 'Install prerequisites and build' | |
| uses: vmactions/netbsd-vm@v1 | |
| with: | |
| prepare: | | |
| # X11 libs (Xext, Xfixes) ship in the NetBSD base system under | |
| # /usr/X11R7, so only DRM and Wayland come from pkgsrc. | |
| /usr/sbin/pkg_add -v meson pkgconf libdrm wayland | |
| run: | | |
| # Let pkg-config find the base-system X11 backend deps as well. | |
| export PKG_CONFIG_PATH="/usr/pkg/lib/pkgconfig:/usr/X11R7/lib/pkgconfig" | |
| meson setup _build -D werror=true | |
| meson compile -C _build | |
| meson install -C _build |