|
45 | 45 | runs-on: "ubuntu-24.04" |
46 | 46 | outputs: |
47 | 47 | centos_stream_9_image_changed: "${{steps.filter.outputs.centos_stream_9_image}}" |
| 48 | + manylinux_2_28_x86_64_image_changed: "${{steps.filter.outputs.manylinux_2_28_x86_64_image}}" |
| 49 | + musllinux_1_2_x86_64_image_changed: "${{steps.filter.outputs.musllinux_1_2_x86_64_image}}" |
48 | 50 | ubuntu_jammy_image_changed: "${{steps.filter.outputs.ubuntu_jammy_image}}" |
49 | 51 | clp_changed: "${{steps.filter.outputs.clp}}" |
50 | 52 | steps: |
|
76 | 78 | - "components/core/tools/scripts/lib_install/*.sh" |
77 | 79 | - "components/core/tools/docker-images/clp-env-base-centos-stream-9/**" |
78 | 80 | - "components/core/tools/scripts/lib_install/centos-stream-9/**" |
| 81 | + manylinux_2_28_x86_64_image: |
| 82 | + - ".github/actions/**" |
| 83 | + - ".github/workflows/clp-core-build.yaml" |
| 84 | + - "components/core/tools/scripts/lib_install/*.sh" |
| 85 | + - "components/core/tools/docker-images/clp-env-base-manylinux_2_28-x86_64/**" |
| 86 | + - "components/core/tools/scripts/lib_install/manylinux_2_28/**" |
| 87 | + musllinux_1_2_x86_64_image: |
| 88 | + - ".github/actions/**" |
| 89 | + - ".github/workflows/clp-core-build.yaml" |
| 90 | + - "components/core/tools/scripts/lib_install/*.sh" |
| 91 | + - "components/core/tools/docker-images/clp-env-base-musllinux_1_2-x86_64/**" |
| 92 | + - "components/core/tools/scripts/lib_install/musllinux_1_2/**" |
79 | 93 | ubuntu_jammy_image: |
80 | 94 | - ".github/actions/**" |
81 | 95 | - ".github/workflows/clp-core-build.yaml" |
@@ -121,6 +135,58 @@ jobs: |
121 | 135 | ${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}} |
122 | 136 | token: "${{secrets.GITHUB_TOKEN}}" |
123 | 137 |
|
| 138 | + manylinux_2_28-x86_64-deps-image: |
| 139 | + name: "manylinux_2_28-x86_64-deps-image" |
| 140 | + if: "needs.filter-relevant-changes.outputs.manylinux_2_28_x86_64_image_changed == 'true'" |
| 141 | + needs: "filter-relevant-changes" |
| 142 | + runs-on: "ubuntu-24.04" |
| 143 | + steps: |
| 144 | + - uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" |
| 145 | + with: |
| 146 | + submodules: "recursive" |
| 147 | + |
| 148 | + - name: "Work around actions/runner-images/issues/6775" |
| 149 | + run: "chown $(id -u):$(id -g) -R ." |
| 150 | + shell: "bash" |
| 151 | + |
| 152 | + - uses: "./.github/actions/clp-core-build-containers" |
| 153 | + env: |
| 154 | + OS_NAME: "manylinux_2_28" |
| 155 | + with: |
| 156 | + image_name: "${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}" |
| 157 | + docker_context: "components/core" |
| 158 | + docker_file: "components/core/tools/docker-images/clp-env-base-${{env.OS_NAME}}-x86_64\ |
| 159 | + /Dockerfile" |
| 160 | + push_deps_image: >- |
| 161 | + ${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}} |
| 162 | + token: "${{secrets.GITHUB_TOKEN}}" |
| 163 | + |
| 164 | + musllinux_1_2-x86_64-deps-image: |
| 165 | + name: "musllinux_1_2-x86_64-deps-image" |
| 166 | + if: "needs.filter-relevant-changes.outputs.musllinux_1_2_x86_64_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 | + |
124 | 190 | ubuntu-jammy-deps-image: |
125 | 191 | name: "ubuntu-jammy-deps-image" |
126 | 192 | if: "needs.filter-relevant-changes.outputs.ubuntu_jammy_image_changed == 'true'" |
@@ -186,6 +252,86 @@ jobs: |
186 | 252 | --build-dir /mnt/repo/components/core/build |
187 | 253 | --num-jobs $(getconf _NPROCESSORS_ONLN) |
188 | 254 |
|
| 255 | + manylinux_2_28-x86_64-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-x86_64-deps-image" |
| 262 | + - "filter-relevant-changes" |
| 263 | + strategy: |
| 264 | + matrix: |
| 265 | + use_shared_libs: [true, false] |
| 266 | + name: >- |
| 267 | + manylinux_2_28-x86_64-${{matrix.use_shared_libs == true && 'dynamic' || 'static'}}-linked-bins |
| 268 | + continue-on-error: true |
| 269 | + runs-on: "ubuntu-24.04" |
| 270 | + steps: |
| 271 | + - uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" |
| 272 | + with: |
| 273 | + submodules: "recursive" |
| 274 | + |
| 275 | + - name: "Work around actions/runner-images/issues/6775" |
| 276 | + run: "chown $(id -u):$(id -g) -R ." |
| 277 | + shell: "bash" |
| 278 | + |
| 279 | + - uses: "./.github/actions/run-on-image" |
| 280 | + env: |
| 281 | + OS_NAME: "manylinux_2_28" |
| 282 | + with: |
| 283 | + image_name: "${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}" |
| 284 | + use_published_image: >- |
| 285 | + ${{needs.filter-relevant-changes.outputs.manylinux_2_28_x86_64_image_changed == 'false' |
| 286 | + || (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}} |
| 287 | + run_command: >- |
| 288 | + CLP_CORE_MAX_PARALLELISM_PER_BUILD_TASK=$(getconf _NPROCESSORS_ONLN) task deps:core |
| 289 | + && python3 /mnt/repo/components/core/tools/scripts/utils/build-and-run-unit-tests.py |
| 290 | + ${{matrix.use_shared_libs == true && '--use-shared-libs' || ''}} |
| 291 | + --source-dir /mnt/repo/components/core |
| 292 | + --build-dir /mnt/repo/components/core/build |
| 293 | + --num-jobs $(getconf _NPROCESSORS_ONLN) |
| 294 | +
|
| 295 | + musllinux_1_2-x86_64-binaries: |
| 296 | + # Run if the ancestor jobs succeeded OR they were skipped and clp was changed. |
| 297 | + if: >- |
| 298 | + success() |
| 299 | + || (!cancelled() && !failure() && needs.filter-relevant-changes.outputs.clp_changed == 'true') |
| 300 | + needs: |
| 301 | + - "musllinux_1_2-x86_64-deps-image" |
| 302 | + - "filter-relevant-changes" |
| 303 | + strategy: |
| 304 | + matrix: |
| 305 | + use_shared_libs: [true, false] |
| 306 | + name: >- |
| 307 | + musllinux_1_2-x86_64-${{matrix.use_shared_libs == true && 'dynamic' || 'static'}}-linked-bins |
| 308 | + continue-on-error: true |
| 309 | + runs-on: "ubuntu-24.04" |
| 310 | + steps: |
| 311 | + - uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" |
| 312 | + with: |
| 313 | + submodules: "recursive" |
| 314 | + |
| 315 | + - name: "Work around actions/runner-images/issues/6775" |
| 316 | + run: "chown $(id -u):$(id -g) -R ." |
| 317 | + shell: "bash" |
| 318 | + |
| 319 | + - uses: "./.github/actions/run-on-image" |
| 320 | + env: |
| 321 | + OS_NAME: "musllinux_1_2" |
| 322 | + with: |
| 323 | + image_name: "${{env.DEPS_IMAGE_NAME_PREFIX}}${{env.OS_NAME}}" |
| 324 | + use_published_image: >- |
| 325 | + ${{needs.filter-relevant-changes.outputs.musllinux_1_2_x86_64_image_changed == 'false' |
| 326 | + || (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')}} |
| 327 | + run_command: >- |
| 328 | + CLP_CORE_MAX_PARALLELISM_PER_BUILD_TASK=$(getconf _NPROCESSORS_ONLN) task deps:core |
| 329 | + && python3 /mnt/repo/components/core/tools/scripts/utils/build-and-run-unit-tests.py |
| 330 | + ${{matrix.use_shared_libs == true && '--use-shared-libs' || ''}} |
| 331 | + --source-dir /mnt/repo/components/core |
| 332 | + --build-dir /mnt/repo/components/core/build |
| 333 | + --num-jobs $(getconf _NPROCESSORS_ONLN) |
| 334 | +
|
189 | 335 | ubuntu-jammy-binaries: |
190 | 336 | # Run if the ancestor jobs succeeded OR they were skipped and clp was changed. |
191 | 337 | if: >- |
|
0 commit comments