forked from key4hep/k4FWCore
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (70 loc) · 2.12 KB
/
key4hep-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: key4hep-build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
job1:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep-images/alma9-build: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
job2:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep-images/ubuntu22-build: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
job3:
runs-on: ubuntu-latest
container:
image: ghcr.io/key4hep-images/centos7-build: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