Hello,
I cannot find a way to make a boolean in a matrix to work… What am I missing?
Thanks for you help
jobs:
build-ubuntu:
runs-on: ubuntu-18.04
needs: format
strategy:
matrix:
config:
- {cc: gcc, cxx: g++, cmake_args: "-DCMAKE_BUILD_TYPE=Debug", coverage: 'yes', benchmark: 'no'}
- {cc: gcc, cxx: g++, cmake_args: "-DCMAKE_BUILD_TYPE=Release -DUSE_BENCHMARK=ON", coverage: 'no', benchmark: 'yes'}
- {cc: clang, cxx: clang++, cmake_args: "-DCMAKE_BUILD_TYPE=Debug", coverage: 'no', benchmark: 'no'}
- {cc: clang, cxx: clang++, cmake_args: "-DCMAKE_BUILD_TYPE=Release", coverage: 'no', benchmark: 'no'}
steps:
- uses: actions/checkout@v1
- name: Compile
run: |
mkdir -p build
cd build
cmake ${{ matrix.config.cmake_args }} ..
cmake --build . -- -j2
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
- name: Test
run: |
mkdir -p test
cd test
cmake ${{ matrix.config.cmake_args }} -DCMAKE_PREFIX_PATH:PATH=$GITHUB_WORKSPACE/build/opengeode/install ../tests
cmake --build . -- -j2
ctest --output-on-failure
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
- name: Kcov
run: curl -s https://raw.githubusercontent.com/Geode-solutions/actions/master/kcov.sh | bash -s -- ${GITHUB_WORKSPACE}/build/opengeode/bin
if: matrix.config.coverage == 'yes' && (github.event_name == 'pull_request' || github.ref == 'refs/heads/master')