From bfae0a491333cde1f68d8e835ae83eec5e72a908 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Mon, 15 Jan 2024 11:55:53 +0100 Subject: [PATCH] Add key4hep based CI workflow --- .github/workflows/key4hep.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/key4hep.yaml diff --git a/.github/workflows/key4hep.yaml b/.github/workflows/key4hep.yaml new file mode 100644 index 0000000..2aeaf77 --- /dev/null +++ b/.github/workflows/key4hep.yaml @@ -0,0 +1,34 @@ +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 }} \ + -DCMAKE_CXX_FLAGS="-fdiagnostics-color=always " \ + -DCMAKE_INSTALL_PREFIX=../install \ + -DINSTALL_DOC=ON \ + -GNinja \ + .. + ninja -k0 + ctest --output-on-failure + ninja install