Skip to content

Commit

Permalink
Don't use anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Dec 13, 2023
1 parent 1a81f5a commit 4523125
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions .github/workflows/key4hep-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,15 @@ on:
- main
workflow_dispatch:

c: &build_commands |
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

s: &build_strategy
strategy:
fail-fast: false
matrix:
release: ["sw.hsf.org/key4hep",
"sw-nightlies.hsf.org/key4hep"]

jobs:
job1:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep-images/alma9-build:latest

<<: *build_strategy

strategy:
fail-fast: false
matrix:
release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -37,15 +23,22 @@ jobs:
uses: cvmfs-contrib/github-action-cvmfs@v3

- name: Setup environment and build
run: *build_commands
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
job2:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep-images/ubuntu22-build:latest

<<: *build_strategy

strategy:
fail-fast: false
matrix:
release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -54,16 +47,23 @@ jobs:
uses: cvmfs-contrib/github-action-cvmfs@v3

- name: Setup environment and build
run: *build_commands
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
job3:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep-images/centos7-build:latest

<<: *build_strategy

strategy:
fail-fast: false
matrix:
release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -72,4 +72,10 @@ jobs:
uses: cvmfs-contrib/github-action-cvmfs@v3

- name: Setup environment and build
run: *build_commands
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

0 comments on commit 4523125

Please sign in to comment.