Update github-actions CI to include more configurations #106
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: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04, ubuntu-22.04 ] | |
buildtype: [ Debug, Release ] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo apt-get update | |
- name: Install build deps | |
run: > | |
sudo apt-get install -y | |
libboost-program-options-dev | |
libboost-test-dev | |
libpoppler-qt5-dev | |
qtbase5-dev | |
qttools5-dev | |
qttools5-dev-tools | |
- name: create build/ dir | |
run: > | |
cmake -B build/ | |
-DCMAKE_VERBOSE_MAKEFILE=ON | |
-DUsePrerenderedPDF=ON | |
-DCodeCoverage=ON | |
-DCMAKE_BUILD_TYPE=${{matrix.buildtype}} | |
. | |
- run: cmake --build build/ | |
- name: run tests within xvfb | |
working-directory: build/ | |
run: > | |
xvfb-run -a -s '-screen 0 1920x1080x24 -screen 1 1920x1200x24' | |
ctest --output-on-failure --timeout 60 | |
- name: upload coverage | |
run: bash <(curl -s https://codecov.io/bash) |