Reorganize #193
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: Ubuntu | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
ubuntu_gcc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gcc: ['9', '10', '11', '12'] | |
env: | |
CC: gcc-${{ matrix.gcc }} | |
CXX: g++-${{ matrix.gcc }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nlohmann::json & boost::histogram | |
run: | | |
sudo apt-get -y update | |
sudo apt-get install -y nlohmann-json3-dev | |
sudo apt-get -y install libboost-dev | |
- name: Run CMake | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DQUERYOSITY_TESTS=ON | |
- name: Build | |
run: cmake --build build --parallel 4 | |
- name: Test | |
run: cd build ; ctest -j 4 --output-on-failure |