88 - " .github/workflows/clp-core-build.yaml"
99 - " .gitmodules"
1010 - " 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/**"
1215 push :
1316 paths :
1417 - " .github/actions/clp-core-build/action.yaml"
1518 - " .github/actions/clp-core-build-containers/action.yaml"
1619 - " .github/workflows/clp-core-build.yaml"
1720 - " .gitmodules"
1821 - " 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/**"
2026 workflow_dispatch :
2127
2228env :
3036 filter-relevant-changes :
3137 runs-on : " ubuntu-latest"
3238 outputs :
33- centos74_image_changed : " ${{steps.filter.outputs.centos74_image }}"
39+ centos_stream_9_image_changed : " ${{steps.filter.outputs.centos_stream_9_image }}"
3440 ubuntu_focal_image_changed : " ${{steps.filter.outputs.ubuntu_focal_image}}"
3541 ubuntu_jammy_image_changed : " ${{steps.filter.outputs.ubuntu_jammy_image}}"
3642 clp_changed : " ${{steps.filter.outputs.clp}}"
@@ -57,12 +63,12 @@ jobs:
5763 # image (since it would be different from the published image).
5864 base : " main"
5965 filters : |
60- centos74_image :
66+ centos_stream_9_image :
6167 - ".github/actions/**"
6268 - ".github/workflows/clp-core-build.yaml"
6369 - "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 /**"
70+ - "components/core/tools/docker-images/clp-env-base-centos-stream-9 /**"
71+ - "components/core/tools/scripts/lib_install/centos-stream-9 /**"
6672 ubuntu_focal_image:
6773 - ".github/actions/**"
6874 - ".github/workflows/clp-core-build.yaml"
@@ -83,11 +89,13 @@ jobs:
8389 - "components/core/CMakeLists.txt"
8490 - "components/core/src/**"
8591 - "components/core/tests/**"
86- - "components/core/tools/scripts/deps-download/**"
87- - "components/core/tools/scripts/utils/build-and-run-unit-tests.sh"
92+ - "components/core/tools/scripts/utils/build-and-run-unit-tests.py"
93+ - "deps-tasks.yml"
94+ - "Taskfile.yml"
95+ - "tools/scripts/deps-download/**"
8896
89- centos74 -deps-image :
90- if : " needs.filter-relevant-changes.outputs.centos74_image_changed == 'true'"
97+ centos-stream-9 -deps-image :
98+ if : " needs.filter-relevant-changes.outputs.centos_stream_9_image_changed == 'true'"
9199 needs : " filter-relevant-changes"
92100 runs-on : " ubuntu-latest"
93101 steps :
@@ -101,7 +109,7 @@ jobs:
101109
102110 - uses : " ./.github/actions/clp-core-build-containers"
103111 env :
104- OS_NAME : " centos7.4 "
112+ OS_NAME : " centos-stream-9 "
105113 with :
106114 image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
107115 docker_context : " components/core"
@@ -161,14 +169,19 @@ jobs:
161169 ${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}}
162170 token : " ${{secrets.GITHUB_TOKEN}}"
163171
164- centos74 -binaries :
172+ centos-stream-9 -binaries :
165173 # Run if the ancestor jobs succeeded OR they were skipped and clp was changed.
166174 if : >-
167175 success()
168176 || (!cancelled() && !failure() && needs.filter-relevant-changes.outputs.clp_changed == 'true')
169177 needs :
170- - " centos74 -deps-image"
178+ - " centos-stream-9 -deps-image"
171179 - " filter-relevant-changes"
180+ strategy :
181+ matrix :
182+ use_shared_libs : [true, false]
183+ name : " centos-stream-9-${{matrix.use_shared_libs && 'dynamic' || 'static'}}-linked-bins"
184+ continue-on-error : true
172185 runs-on : " ubuntu-latest"
173186 steps :
174187 - uses : " actions/checkout@v4"
@@ -181,11 +194,12 @@ jobs:
181194
182195 - uses : " ./.github/actions/clp-core-build"
183196 env :
184- OS_NAME : " centos7.4 "
197+ OS_NAME : " centos-stream-9 "
185198 with :
186199 image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
200+ use_shared_libs : " ${{matrix.use_shared_libs}}"
187201 use_published_image : >-
188- ${{needs.filter-relevant-changes.outputs.centos74_image_changed == 'false'
202+ ${{needs.filter-relevant-changes.outputs.centos_stream_9_image_changed == 'false'
189203 || (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
190204 upload_binaries : " false"
191205
@@ -197,6 +211,15 @@ jobs:
197211 needs :
198212 - " filter-relevant-changes"
199213 - " ubuntu-focal-deps-image"
214+ strategy :
215+ matrix :
216+ include :
217+ - use_shared_libs : true
218+ upload_binaries : false
219+ - use_shared_libs : false
220+ upload_binaries : true
221+ name : " ubuntu-focal-${{matrix.use_shared_libs && 'dynamic' || 'static'}}-linked-bins"
222+ continue-on-error : true
200223 runs-on : " ubuntu-latest"
201224 steps :
202225 - uses : " actions/checkout@v4"
@@ -212,10 +235,11 @@ jobs:
212235 OS_NAME : " ubuntu-focal"
213236 with :
214237 image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
238+ use_shared_libs : " ${{matrix.use_shared_libs}}"
215239 use_published_image : >-
216240 ${{needs.filter-relevant-changes.outputs.ubuntu_focal_image_changed == 'false'
217241 || (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
218- upload_binaries : " true "
242+ upload_binaries : " ${{matrix.upload_binaries}} "
219243 binaries_artifact_name : " ${{env.BINARIES_ARTIFACT_NAME_PREFIX}}${{env.OS_NAME}}"
220244
221245 ubuntu-jammy-binaries :
@@ -226,6 +250,11 @@ jobs:
226250 needs :
227251 - " filter-relevant-changes"
228252 - " ubuntu-jammy-deps-image"
253+ strategy :
254+ matrix :
255+ use_shared_libs : [true, false]
256+ name : " ubuntu-jammy-${{matrix.use_shared_libs && 'dynamic' || 'static'}}-linked-bins"
257+ continue-on-error : true
229258 runs-on : " ubuntu-latest"
230259 steps :
231260 - uses : " actions/checkout@v4"
@@ -241,6 +270,7 @@ jobs:
241270 OS_NAME : " ubuntu-jammy"
242271 with :
243272 image_name : " ${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
273+ use_shared_libs : " ${{matrix.use_shared_libs}}"
244274 use_published_image : >-
245275 ${{needs.filter-relevant-changes.outputs.ubuntu_jammy_image_changed == 'false'
246276 || (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
0 commit comments