Skip to content

Commit 39d7abb

Browse files
committed
Add remaining workflows
1 parent b5da810 commit 39d7abb

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

.github/workflows/clp-core-build.yaml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,32 @@ jobs:
161161
${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}}
162162
token: "${{secrets.GITHUB_TOKEN}}"
163163

164+
musllinux-1-2-deps-image:
165+
name: "musllinux-1-2-deps-image"
166+
if: "needs.filter-relevant-changes.outputs.musllinux_1_2_image_changed == 'true'"
167+
needs: "filter-relevant-changes"
168+
runs-on: "ubuntu-24.04"
169+
steps:
170+
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"
171+
with:
172+
submodules: "recursive"
173+
174+
- name: "Work around actions/runner-images/issues/6775"
175+
run: "chown $(id -u):$(id -g) -R ."
176+
shell: "bash"
177+
178+
- uses: "./.github/actions/clp-core-build-containers"
179+
env:
180+
OS_NAME: "musllinux_1_2"
181+
with:
182+
image_name: "${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
183+
docker_context: "components/core"
184+
docker_file: "components/core/tools/docker-images/clp-env-base-${{env.OS_NAME}}-x86_64\
185+
/Dockerfile"
186+
push_deps_image: >-
187+
${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}}
188+
token: "${{secrets.GITHUB_TOKEN}}"
189+
164190
ubuntu-jammy-deps-image:
165191
name: "ubuntu-jammy-deps-image"
166192
if: "needs.filter-relevant-changes.outputs.ubuntu_jammy_image_changed == 'true'"
@@ -226,6 +252,84 @@ jobs:
226252
--build-dir /mnt/repo/components/core/build
227253
--num-jobs $(getconf _NPROCESSORS_ONLN)
228254
255+
manylinux-2-28-binaries:
256+
# Run if the ancestor jobs succeeded OR they were skipped and clp was changed.
257+
if: >-
258+
success()
259+
|| (!cancelled() && !failure() && needs.filter-relevant-changes.outputs.clp_changed == 'true')
260+
needs:
261+
- "manylinux-2-28-deps-image"
262+
- "filter-relevant-changes"
263+
strategy:
264+
matrix:
265+
use_shared_libs: [true, false]
266+
name: "manylinux-2-28-${{matrix.use_shared_libs == true && 'dynamic' || 'static'}}-linked-bins"
267+
continue-on-error: true
268+
runs-on: "ubuntu-24.04"
269+
steps:
270+
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"
271+
with:
272+
submodules: "recursive"
273+
274+
- name: "Work around actions/runner-images/issues/6775"
275+
run: "chown $(id -u):$(id -g) -R ."
276+
shell: "bash"
277+
278+
- uses: "./.github/actions/run-on-image"
279+
env:
280+
OS_NAME: "manylinux_2_28"
281+
with:
282+
image_name: "${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
283+
use_published_image: >-
284+
${{needs.filter-relevant-changes.outputs.manylinux_2_28_image_changed == 'false'
285+
|| (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
286+
run_command: >-
287+
CLP_CORE_MAX_PARALLELISM_PER_BUILD_TASK=$(getconf _NPROCESSORS_ONLN) task deps:core
288+
&& python3 /mnt/repo/components/core/tools/scripts/utils/build-and-run-unit-tests.py
289+
${{matrix.use_shared_libs == true && '--use-shared-libs' || ''}}
290+
--source-dir /mnt/repo/components/core
291+
--build-dir /mnt/repo/components/core/build
292+
--num-jobs $(getconf _NPROCESSORS_ONLN)
293+
294+
musllinux-1-2-binaries:
295+
# Run if the ancestor jobs succeeded OR they were skipped and clp was changed.
296+
if: >-
297+
success()
298+
|| (!cancelled() && !failure() && needs.filter-relevant-changes.outputs.clp_changed == 'true')
299+
needs:
300+
- "musllinux-1-2-deps-image"
301+
- "filter-relevant-changes"
302+
strategy:
303+
matrix:
304+
use_shared_libs: [true, false]
305+
name: "musllinux-1-2-${{matrix.use_shared_libs == true && 'dynamic' || 'static'}}-linked-bins"
306+
continue-on-error: true
307+
runs-on: "ubuntu-24.04"
308+
steps:
309+
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"
310+
with:
311+
submodules: "recursive"
312+
313+
- name: "Work around actions/runner-images/issues/6775"
314+
run: "chown $(id -u):$(id -g) -R ."
315+
shell: "bash"
316+
317+
- uses: "./.github/actions/run-on-image"
318+
env:
319+
OS_NAME: "musllinux_1_2"
320+
with:
321+
image_name: "${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}"
322+
use_published_image: >-
323+
${{needs.filter-relevant-changes.outputs.musllinux_1_2_image_changed == 'false'
324+
|| (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}}
325+
run_command: >-
326+
CLP_CORE_MAX_PARALLELISM_PER_BUILD_TASK=$(getconf _NPROCESSORS_ONLN) task deps:core
327+
&& python3 /mnt/repo/components/core/tools/scripts/utils/build-and-run-unit-tests.py
328+
${{matrix.use_shared_libs == true && '--use-shared-libs' || ''}}
329+
--source-dir /mnt/repo/components/core
330+
--build-dir /mnt/repo/components/core/build
331+
--num-jobs $(getconf _NPROCESSORS_ONLN)
332+
229333
ubuntu-jammy-binaries:
230334
# Run if the ancestor jobs succeeded OR they were skipped and clp was changed.
231335
if: >-

0 commit comments

Comments
 (0)