Improve the API for retrieving handles associated with specific addresses/names and fix a buggy test #400
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: Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ${{ matrix.sys.os }} | |
strategy: | |
matrix: | |
sys: | |
- { name: linux-glibc, os: ubuntu-latest, shell: bash, osx_architectures: '' } | |
- { name: linux-musl, os: ubuntu-latest, shell: 'alpine.sh --root {0}', osx_architectures: '' } | |
- { name: windows, os: windows-latest, shell: pwsh, osx_architectures: '' } | |
- { name: mac, os: macos-latest, shell: bash, osx_architectures: 'arm64' } | |
- { name: mac, os: macos-latest, shell: bash, osx_architectures: 'x86_64' } | |
defaults: | |
run: | |
shell: ${{ matrix.sys.shell }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Setup latest Alpine Linux | |
uses: jirutka/setup-alpine@39d2d96fa8e4b713be89c0239a5c3b9a0f49838d | |
if: ${{ matrix.sys.name == 'linux-musl' }} | |
with: | |
arch: x86_64 | |
packages: > | |
make | |
cmake | |
libstdc++ | |
g++ | |
musl-dev | |
git | |
- name: Git Nonsense | |
if: ${{ matrix.sys.os == 'ubuntu-latest' }} | |
run: git config --global --add safe.directory ${{github.workspace}} | |
- name: Configure CMake | |
env: | |
USE_MUSL_LIBC: ${{ matrix.sys.name == 'linux-musl' }} | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_OSX_ARCHITECTURES=${{matrix.sys.osx_architectures}} -DUSE_MUSL_LIBC=${{env.USE_MUSL_LIBC}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure |