diff --git a/.github/workflows/clp-artifact-build.yaml b/.github/workflows/clp-artifact-build.yaml index b47b0369a7..360b3cc2fc 100644 --- a/.github/workflows/clp-artifact-build.yaml +++ b/.github/workflows/clp-artifact-build.yaml @@ -63,28 +63,26 @@ jobs: # image (since it would be different from the published image). base: "main" filters: | - centos_stream_9_image: + # NOTE: This filter defines a reusable YAML anchor; its output is unused. + _deps_images_common_paths: &_deps_images_common_paths - ".github/actions/**" - ".github/workflows/clp-artifact-build.yaml" - "components/core/tools/scripts/lib_install/*.sh" + - "components/core/tools/scripts/lib_install/pipx-packages/**" + centos_stream_9_image: + - *_deps_images_common_paths - "components/core/tools/docker-images/clp-env-base-centos-stream-9/**" - "components/core/tools/scripts/lib_install/centos-stream-9/**" manylinux_2_28_x86_64_image: - - ".github/actions/**" - - ".github/workflows/clp-artifact-build.yaml" - - "components/core/tools/scripts/lib_install/*.sh" + - *_deps_images_common_paths - "components/core/tools/docker-images/clp-env-base-manylinux_2_28-x86_64/**" - "components/core/tools/scripts/lib_install/manylinux_2_28/**" musllinux_1_2_x86_64_image: - - ".github/actions/**" - - ".github/workflows/clp-artifact-build.yaml" - - "components/core/tools/scripts/lib_install/*.sh" + - *_deps_images_common_paths - "components/core/tools/docker-images/clp-env-base-musllinux_1_2-x86_64/**" - "components/core/tools/scripts/lib_install/musllinux_1_2/**" ubuntu_jammy_image: - - ".github/actions/**" - - ".github/workflows/clp-artifact-build.yaml" - - "components/core/tools/scripts/lib_install/*.sh" + - *_deps_images_common_paths - "components/core/tools/docker-images/clp-env-base-ubuntu-jammy/**" - "components/core/tools/scripts/lib_install/ubuntu-jammy/**" clp: diff --git a/.github/workflows/clp-core-build-macos.yaml b/.github/workflows/clp-core-build-macos.yaml index 9ae28b573d..960e701ada 100644 --- a/.github/workflows/clp-core-build-macos.yaml +++ b/.github/workflows/clp-core-build-macos.yaml @@ -2,33 +2,22 @@ name: "clp-core-build-macos" on: pull_request: - paths: + paths: &monitored_paths - ".github/workflows/clp-core-build-macos.yaml" - ".gitmodules" - "components/core/cmake/**" - "components/core/CMakeLists.txt" - "components/core/src/**" - "components/core/tests/**" - - "components/core/tools/scripts/lib_install/macos/**" - "components/core/tools/scripts/deps-download/**" - - "components/core/tools/scripts/utils/build-and-run-unit-tests.py" - - "taskfile.yaml" - - "taskfiles/**" - - "tools/scripts/deps-download/**" - push: - paths: - - ".github/workflows/clp-core-build-macos.yaml" - - ".gitmodules" - - "components/core/cmake/**" - - "components/core/CMakeLists.txt" - - "components/core/src/**" - - "components/core/tests/**" - "components/core/tools/scripts/lib_install/macos/**" - - "components/core/tools/scripts/deps-download/**" + - "components/core/tools/scripts/lib_install/pipx-packages/**" - "components/core/tools/scripts/utils/build-and-run-unit-tests.py" - "taskfile.yaml" - "taskfiles/**" - "tools/scripts/deps-download/**" + push: + paths: *monitored_paths schedule: # Run daily at 00:15 UTC (the 15 is to avoid periods of high load) - cron: "15 0 * * *"