Implement hwng for macOS and fallback ReadAt for other platforms #14
Workflow file for this run
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: FreeBSD CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master", "devel" ] | |
pull_request: | |
branches: [ "master", "devel" ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: FreeBSD CI | |
env: | |
BUILD_TYPE: RelWithDebInfo | |
INSTALL_LOCATION: ${{github.workspace}}/SonivoxV3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: FreeBSD test | |
id: test | |
uses: vmactions/freebsd-vm@v1 | |
with: | |
envs: 'BUILD_TYPE INSTALL_LOCATION' | |
usesh: true | |
prepare: | | |
pkg install -y \ | |
cmake \ | |
ninja \ | |
pkgconf \ | |
googletest | |
run: | | |
set -e -x | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} | |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
cd ${{github.workspace}}/build | |
ctest -C ${{env.BUILD_TYPE}} | |
cd ${{github.workspace}} | |
cmake --install ${{github.workspace}}/build | |
tar cvf SonivoxV3.tar SonivoxV3 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: SonivoxV3-freebsd | |
path: SonivoxV3.tar | |
retention-days: 90 | |
overwrite: true |