Skip to content

Key4hep build

Key4hep build #4

name: key4hep-build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
alma9:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep/key4hep-images/alma9:latest
strategy:
fail-fast: false
matrix:
release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up CVMFS
uses: cvmfs-contrib/github-action-cvmfs@v3
- name: Setup environment and build
run: |
source ${{ matrix.release }}/setup.sh
mkdir build
cd build
cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../install -G Ninja
ninja install
ctest -j $(nproc) --output-on-failure
ubuntu:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep/key4hep-images/ubuntu22:latest
strategy:
fail-fast: false
matrix:
release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up CVMFS
uses: cvmfs-contrib/github-action-cvmfs@v3
- name: Setup environment and build
run: |
source ${{ matrix.release }}/setup.sh
mkdir build
cd build
cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../install -G Ninja
ninja install
ctest -j $(nproc) --output-on-failure
centos7:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep/key4hep-images/centos7:latest
strategy:
fail-fast: false
matrix:
release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up CVMFS
uses: cvmfs-contrib/github-action-cvmfs@v3
- name: Setup environment and build
run: |
source ${{ matrix.release }}/setup.sh
mkdir build
cd build
cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../install -G Ninja
ninja install
ctest -j $(nproc) --output-on-failure