8
8
- " .github/workflows/clp-core-build.yaml"
9
9
- " .gitmodules"
10
10
- " components/core/**"
11
- - " !components/core/tools/scripts/lib_install/macos-12/**"
11
+ - " deps-tasks.yml"
12
+ - " Taskfile.yml"
13
+ - " tools/scripts/deps-download/**"
14
+ - " !components/core/tools/scripts/lib_install/macos/**"
12
15
push :
13
16
paths :
14
17
- " .github/actions/clp-core-build/action.yaml"
15
18
- " .github/actions/clp-core-build-containers/action.yaml"
16
19
- " .github/workflows/clp-core-build.yaml"
17
20
- " .gitmodules"
18
21
- " components/core/**"
19
- - " !components/core/tools/scripts/lib_install/macos-12/**"
22
+ - " deps-tasks.yml"
23
+ - " Taskfile.yml"
24
+ - " tools/scripts/deps-download/**"
25
+ - " !components/core/tools/scripts/lib_install/macos/**"
26
+ schedule :
27
+ # Run daily at 00:15 UTC (the 15 is to avoid periods of high load)
28
+ - cron : " 15 0 * * *"
20
29
workflow_dispatch :
21
30
22
31
env :
30
39
filter-relevant-changes :
31
40
runs-on : " ubuntu-latest"
32
41
outputs :
33
- centos74_image_changed : " ${{steps.filter.outputs.centos74_image }}"
42
+ centos_stream_9_image_changed : " ${{steps.filter.outputs.centos_stream_9_image }}"
34
43
ubuntu_focal_image_changed : " ${{steps.filter.outputs.ubuntu_focal_image}}"
35
44
ubuntu_jammy_image_changed : " ${{steps.filter.outputs.ubuntu_jammy_image}}"
36
45
clp_changed : " ${{steps.filter.outputs.clp}}"
@@ -57,12 +66,12 @@ jobs:
57
66
# image (since it would be different from the published image).
58
67
base : " main"
59
68
filters : |
60
- centos74_image :
69
+ centos_stream_9_image :
61
70
- ".github/actions/**"
62
71
- ".github/workflows/clp-core-build.yaml"
63
72
- "components/core/tools/scripts/lib_install/*.sh"
64
- - "components/core/tools/docker-images/clp-env-base-centos7.4 /**"
65
- - "components/core/tools/scripts/lib_install/centos7.4 /**"
73
+ - "components/core/tools/docker-images/clp-env-base-centos-stream-9 /**"
74
+ - "components/core/tools/scripts/lib_install/centos-stream-9 /**"
66
75
ubuntu_focal_image:
67
76
- ".github/actions/**"
68
77
- ".github/workflows/clp-core-build.yaml"
@@ -83,11 +92,13 @@ jobs:
83
92
- "components/core/CMakeLists.txt"
84
93
- "components/core/src/**"
85
94
- "components/core/tests/**"
86
- - "components/core/tools/scripts/deps-download/**"
87
- - "components/core/tools/scripts/utils/build-and-run-unit-tests.sh"
95
+ - "components/core/tools/scripts/utils/build-and-run-unit-tests.py"
96
+ - "deps-tasks.yml"
97
+ - "Taskfile.yml"
98
+ - "tools/scripts/deps-download/**"
88
99
89
- centos74 -deps-image :
90
- if : " needs.filter-relevant-changes.outputs.centos74_image_changed == 'true'"
100
+ centos-stream-9 -deps-image :
101
+ if : " needs.filter-relevant-changes.outputs.centos_stream_9_image_changed == 'true'"
91
102
needs : " filter-relevant-changes"
92
103
runs-on : " ubuntu-latest"
93
104
steps :
@@ -101,7 +112,7 @@ jobs:
101
112
102
113
- uses : " ./.github/actions/clp-core-build-containers"
103
114
env :
104
- OS_NAME : " centos7.4 "
115
+ OS_NAME : " centos-stream-9 "
105
116
with :
106
117
image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
107
118
docker_context : " components/core"
@@ -161,14 +172,19 @@ jobs:
161
172
${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}}
162
173
token : " ${{secrets.GITHUB_TOKEN}}"
163
174
164
- centos74 -binaries :
175
+ centos-stream-9 -binaries :
165
176
# Run if the ancestor jobs succeeded OR they were skipped and clp was changed.
166
177
if : >-
167
178
success()
168
179
|| (!cancelled() && !failure() && needs.filter-relevant-changes.outputs.clp_changed == 'true')
169
180
needs :
170
- - " centos74 -deps-image"
181
+ - " centos-stream-9 -deps-image"
171
182
- " filter-relevant-changes"
183
+ strategy :
184
+ matrix :
185
+ use_shared_libs : [true, false]
186
+ name : " centos-stream-9-${{matrix.use_shared_libs && 'dynamic' || 'static'}}-linked-bins"
187
+ continue-on-error : true
172
188
runs-on : " ubuntu-latest"
173
189
steps :
174
190
- uses : " actions/checkout@v4"
@@ -181,11 +197,12 @@ jobs:
181
197
182
198
- uses : " ./.github/actions/clp-core-build"
183
199
env :
184
- OS_NAME : " centos7.4 "
200
+ OS_NAME : " centos-stream-9 "
185
201
with :
186
202
image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
203
+ use_shared_libs : " ${{matrix.use_shared_libs}}"
187
204
use_published_image : >-
188
- ${{needs.filter-relevant-changes.outputs.centos74_image_changed == 'false'
205
+ ${{needs.filter-relevant-changes.outputs.centos_stream_9_image_changed == 'false'
189
206
|| (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
190
207
upload_binaries : " false"
191
208
@@ -197,6 +214,15 @@ jobs:
197
214
needs :
198
215
- " filter-relevant-changes"
199
216
- " ubuntu-focal-deps-image"
217
+ strategy :
218
+ matrix :
219
+ include :
220
+ - use_shared_libs : true
221
+ upload_binaries : false
222
+ - use_shared_libs : false
223
+ upload_binaries : true
224
+ name : " ubuntu-focal-${{matrix.use_shared_libs && 'dynamic' || 'static'}}-linked-bins"
225
+ continue-on-error : true
200
226
runs-on : " ubuntu-latest"
201
227
steps :
202
228
- uses : " actions/checkout@v4"
@@ -212,10 +238,11 @@ jobs:
212
238
OS_NAME : " ubuntu-focal"
213
239
with :
214
240
image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
241
+ use_shared_libs : " ${{matrix.use_shared_libs}}"
215
242
use_published_image : >-
216
243
${{needs.filter-relevant-changes.outputs.ubuntu_focal_image_changed == 'false'
217
244
|| (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
218
- upload_binaries : " true "
245
+ upload_binaries : " ${{matrix.upload_binaries}} "
219
246
binaries_artifact_name : " ${{env.BINARIES_ARTIFACT_NAME_PREFIX}}${{env.OS_NAME}}"
220
247
221
248
ubuntu-jammy-binaries :
@@ -226,6 +253,11 @@ jobs:
226
253
needs :
227
254
- " filter-relevant-changes"
228
255
- " ubuntu-jammy-deps-image"
256
+ strategy :
257
+ matrix :
258
+ use_shared_libs : [true, false]
259
+ name : " ubuntu-jammy-${{matrix.use_shared_libs && 'dynamic' || 'static'}}-linked-bins"
260
+ continue-on-error : true
229
261
runs-on : " ubuntu-latest"
230
262
steps :
231
263
- uses : " actions/checkout@v4"
@@ -241,6 +273,7 @@ jobs:
241
273
OS_NAME : " ubuntu-jammy"
242
274
with :
243
275
image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
276
+ use_shared_libs : " ${{matrix.use_shared_libs}}"
244
277
use_published_image : >-
245
278
${{needs.filter-relevant-changes.outputs.ubuntu_jammy_image_changed == 'false'
246
279
|| (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
0 commit comments