-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the central actions for Key4hep builds
- Loading branch information
Showing
1 changed file
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
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 }} |