ga: add a NetBSD build action #1
This file contains 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: BSD | ||
on: [push] | ||
jobs: | ||
NetBSD: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: configure and build | ||
uses: vmactions/netbsd-vm@v1 | ||
with: | ||
usesh: true | ||
copyback: false | ||
prepare: | ||
/usr/sbin/pkg_add cmake zstd py313-pip | ||
/usr/pkg/bin/pip-3.13 install nihtest | ||
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path | ||
echo "/usr/pkg/bin" >> "$GITHUB_PATH" | ||
run: | | ||
cmake -E make_directory ${{runner.workspace}}/build | ||
cmake ${{ matrix.cmake_extra }} ${{github.workspace}} | ||
cmake --build . --config Release | ||
ctest --output-on-failure -V -C Release |