Update to C++-20 and other minor fixes #14
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: Test LibOSI library | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test_libosi: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-24.04] | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get -qq update -y | |
| sudo apt-get -qq install cmake ninja-build rapidjson-dev libgtest-dev libglib2.0-dev -y | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Build with testing enabled and run tests | |
| run: | | |
| cmake -B build -GNinja -DENABLE_TESTING=ON | |
| ninja -C build | |
| ninja -C build test | |
| - name: Test installing Debian package | |
| run: | | |
| ninja -C build package | |
| sudo dpkg -i build/libosi*.deb | |