forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 0
149 lines (146 loc) · 4.37 KB
/
builds.yml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: Builds
on:
push:
pull_request:
branches:
- master
- 'release/**'
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
ubuntu2004:
runs-on: ubuntu-latest
container: gitlab-registry.cern.ch/acts/machines/ubuntu2004:v4
steps:
- uses: actions/checkout@v2
- name: Configure
run: >
cmake -B build -S .
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DACTS_BUILD_EVERYTHING=on
- name: Build
run: cmake --build build --
- name: Unit tests
run: cmake --build build -- test
- name: Integration tests
run: cmake --build build -- integrationtests
cuda:
runs-on: ubuntu-latest
container: gitlab-registry.cern.ch/acts/machines/ubuntu1804_cuda:v4
steps:
- uses: actions/checkout@v2
- name: Configure
run: >
cmake -B build -S .
-GNinja
-DCMAKE_CXX_COMPILER=/usr/bin/g++-8
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DACTS_BUILD_CUDA_PLUGIN=ON
-DACTS_BUILD_UNITTESTS=ON
- name: Build
run: cmake --build build --
macos:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
path: src
- name: Install dependencies
run: >
brew install cmake eigen ninja
&& sudo mkdir /usr/local/acts
&& sudo chown $USER /usr/local/acts
&& curl -SL https://acts.web.cern.ch/ACTS/ci/macOS/deps.43e0201.tar.gz | tar -xzC /usr/local/acts
- name: Configure
run: >
cmake -B build -S src
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_PREFIX_PATH=/usr/local/acts
-DACTS_BUILD_EVERYTHING=on
- name: Build
run: cmake --build build --
- name: Unit tests
run: cmake --build build -- test
- name: Integration tests
run: cmake --build build -- integrationtests
lcg:
runs-on: ubuntu-latest
container: gitlab-registry.cern.ch/acts/machines/${{ matrix.os }}-lcg${{ matrix.lcg }}:v4
strategy:
matrix:
os:
- centos7
lcg:
- 95apython3
- 96
env:
SETUP: /opt/lcg_view/setup.sh
steps:
- uses: actions/checkout@v1
- name: Configure
run: >
source ${SETUP}
&& mkdir build
&& cd build
&& cmake ..
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DACTS_BUILD_EVERYTHING=on
- name: Build
run: source ${SETUP} && cmake --build build --
- name: Unit tests
run: source ${SETUP} && cmake --build build -- test
- name: Integration tests
run: source ${SETUP} && cmake --build build -- integrationtests
docs:
runs-on: ubuntu-latest
container: gitlab-registry.cern.ch/acts/machines/ubuntu2004:v4
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: >
apt-get install -y doxygen
&& pip3 install -r docs/requirements.txt
- name: Configure
run: cmake -B build -S . -GNinja -DACTS_BUILD_DOCS=on
- name: Build
run: cmake --build build -- docs-with-api
- uses: actions/upload-artifact@v2
with:
name: acts-docs
path: docs/_build/html/
downstream:
runs-on: ubuntu-latest
container: gitlab-registry.cern.ch/acts/machines/ubuntu2004:v4
steps:
- uses: actions/checkout@v2
- name: Configure Acts
run: >
cmake -B build-acts -S .
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install-acts
-DACTS_BUILD_JSON_PLUGIN=on
-DACTS_BUILD_FATRAS=on
- name: Build Acts
run: cmake --build build-acts --
- name: Install Acts
run: cmake --build build-acts -- install
- name: Configure Downstream
run: >
cmake -B build-downstream -S Tests/DownstreamProject
-GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/install-acts
- name: Build Downstream
run: cmake --build build-downstream --
- name: Run Downstream
run: ./build-downstream/bin/ShowActsVersion