Skip to content

Fix Potential

Fix Potential #377

Workflow file for this run

name: Tests
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
concurrency:
group: Tests-${{ github.ref }}
cancel-in-progress: true
jobs:
Ubuntu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
compiler: [gcc-10]
build_type: ['Debug']
multithreaded: ['ON', 'OFF']
fail-fast: false
env:
MAKEFLAGS: "-j2"
CTEST_PARALLEL_LEVEL: 2
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Cpp (C++ / C)
uses: aminya/[email protected]
with:
compiler: ${{ matrix.compiler }}
cmake: true
- name: Install dependencies
run: >-
sudo apt-get update && sudo apt-get install -y
libgl1-mesa-dev
lcov
libsdl2-dev
libglfw3-dev
libopenal-dev
libvulkan-dev
libsuitesparse-dev
libmetis-dev
libboost1.74-all-dev
- name: Configure CMake
run: >
cmake
-B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DRODIN_BUILD_DOC=OFF
-DRODIN_USE_MCSS=OFF
-DRODIN_BUILD_EXAMPLES=OFF
-DRODIN_BUILD_BENCHMARKS=OFF
-DRODIN_BUILD_SRC=ON
-DRODIN_BUILD_UNIT_TESTS=ON
-DRODIN_CODE_COVERAGE=ON
-DRODIN_MULTITHREADED=${{ matrix.multithreaded }}
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Run tests
run: ctest --test-dir ${{github.workspace}}/build/tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
gcov: true
gcov_include: ${{github.workspace}}