From 23ffb1b3f685d66d088f5145e4c583debdc632d7 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Mon, 17 Jul 2023 10:27:38 +0200 Subject: [PATCH] Add key4hep based workflow --- .github/workflows/key4hep.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/key4hep.yml diff --git a/.github/workflows/key4hep.yml b/.github/workflows/key4hep.yml new file mode 100644 index 0000000..347af31 --- /dev/null +++ b/.github/workflows/key4hep.yml @@ -0,0 +1,31 @@ +name: keyh4ep +on: [push, pull_request] + +jobs: + build-and-test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + - uses: cvmfs-contrib/github-action-cvmfs@v3 + - uses: aidasoft/run-lcg-view@v4 + with: + container: centos7 + view-path: /cvmfs/sw-nightlies.hsf.org/key4hep + run: | + mkdir build + cd build + echo "::group::Run CMake" + cmake -GNinja \ + -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror " \ + -DCMAKE_CXX_STANDARD=17 \ + -DCMAKE_INSTALL_PREFIX=../install \ + .. + echo "::endgroup::" && echo "::group::Build" + ninja -k0 + echo "::endgroup::" && echo "::group::Run Tests" + ctest --output-on-failure + echo "::endgroup::" && echo "::group::Install" + ninja install