Extract common members into a common base #2662
Workflow file for this run
This file contains hidden or 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: edm4hep | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| LCG: ["LCG_107/x86_64-el9-gcc13-opt", | |
| "dev4/x86_64-el9-gcc15-opt", | |
| "dev3/x86_64-el9-clang19-opt"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: podio | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: key4hep/EDM4hep | |
| path: edm4hep | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: catchorg/Catch2 | |
| path: catch2 | |
| ref: v3.4.0 | |
| - uses: cvmfs-contrib/github-action-cvmfs@v4 | |
| - uses: aidasoft/run-lcg-view@v5 | |
| with: | |
| release-platform: ${{ matrix.LCG }} | |
| ccache-key: ccache-edm4hep-${{ matrix.LCG }} | |
| run: | | |
| STARTDIR=$(pwd) | |
| echo "::group::Build Catch2" | |
| cd $STARTDIR/catch2 | |
| cmake -B build -S . -DCMAKE_CXX_STANDARD=$([[ ${{ matrix.LCG }} == *-gcc15-* ]] && echo "23" || echo "20") -DCMAKE_INSTALL_PREFIX=$(pwd)/install -G Ninja | |
| cmake --build build --target install | |
| export CMAKE_PREFIX_PATH=$STARTDIR/catch2/install:$CMAKE_PREFIX_PATH | |
| echo "::endgroup::" | |
| echo "::group::Build podio" | |
| cd $STARTDIR/podio | |
| cmake -S . --preset ci-build \ | |
| -DENABLE_JULIA=ON \ | |
| -DCMAKE_INSTALL_PREFIX=$(pwd)/install \ | |
| -DCMAKE_CXX_STANDARD=$([[ ${{ matrix.LCG }} == *-gcc15-* ]] && echo "23" || echo "20") \ | |
| -DUSE_EXTERNAL_CATCH2=ON \ | |
| -DPODIO_RUN_STRACE_TEST=ON | |
| cmake --build --preset ci-build | |
| echo "::endgroup::" | |
| echo "::group::Test and install podio" | |
| ctest --preset ci-build --parallel | |
| cmake --build --preset ci-build --target install | |
| cd $STARTDIR/podio | |
| source init.sh && source env.sh | |
| echo "::endgroup::" | |
| echo "::group::Build and test EDM4hep" | |
| cd $STARTDIR/edm4hep | |
| cmake -B build -S . \ | |
| -DCMAKE_CXX_STANDARD=$([[ ${{ matrix.LCG }} == *-gcc15-* ]] && echo "23" || echo "20") \ | |
| -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " \ | |
| -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
| -DUSE_EXTERNAL_CATCH2=ON \ | |
| -G Ninja | |
| cmake --build build -- -k0 | |
| ctest --test-dir build --output-on-failure | |
| echo "::endgroup::" |