Skip to content

Commit

Permalink
Use the central actions for Key4hep builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Feb 4, 2025
1 parent cf58a59 commit 198a4b9
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions .github/workflows/key4hep.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
# Do not edit this file, it will be overwritten!
# The template file can be found in
# https://github.com/key4hep/key4hep-actions/blob/main/workflows/key4hep-build.yaml
name: key4hep

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '16 5 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linux:
runs-on: ubuntu-latest
build:
strategy:
fail-fast: false
matrix:
include:
- release: "sw.hsf.org/key4hep"
CXX_STANDARD: 17
- release: "sw-nightlies.hsf.org/key4hep"
CXX_STANDARD: 20
build_type: ["release", "nightly"]
image: ["alma9", "ubuntu22"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/github-action-cvmfs@v3
- uses: aidasoft/run-lcg-view@v4
- uses: actions/checkout@v4
- uses: key4hep/key4hep-actions/key4hep-build@main
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
build_type: ${{ matrix.build_type }}
image: ${{ matrix.image }}

0 comments on commit 198a4b9

Please sign in to comment.