Skip to content

Use c++20 on key4hep nightlies in CI (#187) #92

Use c++20 on key4hep nightlies in CI (#187)

Use c++20 on key4hep nightlies in CI (#187) #92

Workflow file for this run

name: key4hep
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- release: "sw.hsf.org/key4hep"
CXX_STANDARD: 17
- release: "sw-nightlies.hsf.org/key4hep"
CXX_STANDARD: 20
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/github-action-cvmfs@v3
- uses: aidasoft/run-lcg-view@v4
with:
container: centos7
view-path: /cvmfs/${{ matrix.release }}
run: |
mkdir build install
cd build
cmake -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \
-DBUILD_ROOTDICT=ON \
-DCMAKE_CXX_FLAGS="-fdiagnostics-color=always -Werror " \
-DCMAKE_INSTALL_PREFIX=../install \
..
make -k
make install
ctest --output-on-failure
echo "::group::Test downstream build"
cd -
export CMAKE_PREFIX_PATH=$PWD/install:$CMAKE_PREFIX_PATH
cd tests/downstream-project-cmake-test
mkdir build && cd build
cmake .. -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }}
make -k