Ignore warning for -Wunused-result in ~DropPrivilegeGuard() for GCC #680
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: OpenBSD CMake | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: main | |
| tags-ignore: '*.*' | |
| paths: | |
| - '.github/workflows/cmake-openbsd.yml' | |
| - 'CMakeLists.txt' | |
| - 'cmake/**' | |
| - 'include/**' | |
| - 'src/*pp' | |
| - 'src/openbsd/*pp' | |
| pull_request: | |
| branches: main | |
| paths: | |
| - '.github/workflows/cmake-openbsd.yml' | |
| - 'CMakeLists.txt' | |
| - 'cmake/**' | |
| - 'include/**' | |
| - 'src/*pp' | |
| - 'src/openbsd/*pp' | |
| jobs: | |
| build: | |
| name: openbsd-${{ matrix.version}}-${{ matrix.arch}} | |
| runs-on: ubuntu-24.04 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.arch }}-${{ matrix.version }} | |
| cancel-in-progress: true | |
| strategy: | |
| matrix: | |
| arch: ['aarch64', 'x86_64'] | |
| version: ['7.8'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Compile | |
| uses: vmactions/openbsd-vm@v1 | |
| with: | |
| arch: ${{ matrix.arch }} | |
| release: ${{ matrix.version }} | |
| usesh: true | |
| prepare: pkg_add cmake git ninja | |
| run: | | |
| cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug | |
| cmake --build build --verbose | |
| ctest --test-dir build |