Skip to content

Commit

Permalink
Add key4hep based workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Aug 15, 2023
1 parent 24f1ab5 commit 23ffb1b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/key4hep.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 23ffb1b

Please sign in to comment.