@@ -228,7 +228,7 @@ jobs:
228228 node ./dist/legacy/setup-cpp.js --gcc true --cmake true
229229
230230 Docker :
231- name : Docker-${{ matrix.container.image }}-${{ matrix.platform }}
231+ name : Docker-${{ matrix.container.image }}-${{ matrix.platform }}-${{ matrix.container.tag }}
232232 needs : [Build]
233233 runs-on : ${{ matrix.os }}
234234 strategy :
@@ -239,13 +239,21 @@ jobs:
239239 platform :
240240 - linux/amd64
241241 container :
242- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.2.2" }
242+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "24.04", tag: "24.04-1.2.2" }
243+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "22.04", tag: "22.04-1.2.2" }
244+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "20.04", tag: "20.04-1.2.2" }
243245 - { distro: "fedora", image: "setup-cpp-fedora", tag: "40-1.2.2" }
244246 - { distro: "arch", image: "setup-cpp-arch", tag: "base-1.2.2" }
245247 include :
246248 - os : ubuntu-24.04-arm
247249 platform : linux/arm64
248- container : { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.2.2" }
250+ container : { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "24.04", tag: "24.04-1.2.2" }
251+ - os : ubuntu-24.04-arm
252+ platform : linux/arm64
253+ container : { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "22.04", tag: "22.04-1.2.2" }
254+ - os : ubuntu-24.04-arm
255+ platform : linux/arm64
256+ container : { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "20.04", tag: "20.04-1.2.2" }
249257 steps :
250258 - uses : actions/checkout@v4
251259 with :
@@ -285,6 +293,7 @@ jobs:
285293 tags : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
286294 cache-from : type=registry,ref=aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
287295 cache-to : type=inline
296+ build-args : BASE_VERSION=${{ matrix.container.BASE_VERSION || '' }}
288297
289298 - name : Tag latest locally
290299 run : |
@@ -432,6 +441,14 @@ jobs:
432441 needs : [Docker]
433442 runs-on : ubuntu-24.04
434443 if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
444+ strategy :
445+ fail-fast : false
446+ matrix :
447+ container :
448+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.2.2", suffix: "", latest: true }
449+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.2.2", suffix: "-llvm", latest: true }
450+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.2.2", suffix: "-gcc", latest: true }
451+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.2.2", suffix: "-mingw", latest: true }
435452 steps :
436453 - name : Set up Docker Buildx
437454 uses : docker/setup-buildx-action@v3
@@ -444,53 +461,16 @@ jobs:
444461
445462 - uses : Noelware/docker-manifest-action@0.4.3
446463 with :
447- inputs : aminya/setup-cpp-ubuntu:22.04-1.2.2
448- images : aminya/setup-cpp-ubuntu:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu:22.04-1.2.2-arm64
449- push : true
450- amend : true
451- - uses : Noelware/docker-manifest-action@0.4.3
452- with :
453- inputs : aminya/setup-cpp-ubuntu:latest
454- images : aminya/setup-cpp-ubuntu:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu:22.04-1.2.2-arm64
455- push : true
456- amend : true
457-
458- - uses : Noelware/docker-manifest-action@0.4.3
459- with :
460- inputs : aminya/setup-cpp-ubuntu-llvm:22.04-1.2.2
461- images : aminya/setup-cpp-ubuntu-llvm:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu-llvm:22.04-1.2.2-arm64
462- push : true
463- amend : true
464- - uses : Noelware/docker-manifest-action@0.4.3
465- with :
466- inputs : aminya/setup-cpp-ubuntu-llvm:latest
467- images : aminya/setup-cpp-ubuntu-llvm:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu-llvm:22.04-1.2.2-arm64
464+ inputs : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}
465+ images : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-amd64,aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-arm64
468466 push : true
469467 amend : true
470468
471469 - uses : Noelware/docker-manifest-action@0.4.3
470+ if : ${{ matrix.container.latest }}
472471 with :
473- inputs : aminya/setup-cpp-ubuntu-gcc:22.04-1.2.2
474- images : aminya/setup-cpp-ubuntu-gcc:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu-gcc:22.04-1.2.2-arm64
475- push : true
476- amend : true
477- - uses : Noelware/docker-manifest-action@0.4.3
478- with :
479- inputs : aminya/setup-cpp-ubuntu-gcc:latest
480- images : aminya/setup-cpp-ubuntu-gcc:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu-gcc:22.04-1.2.2-arm64
481- push : true
482- amend : true
483-
484- - uses : Noelware/docker-manifest-action@0.4.3
485- with :
486- inputs : aminya/setup-cpp-ubuntu-mingw:22.04-1.2.2
487- images : aminya/setup-cpp-ubuntu-mingw:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu-mingw:22.04-1.2.2-arm64
488- push : true
489- amend : true
490- - uses : Noelware/docker-manifest-action@0.4.3
491- with :
492- inputs : aminya/setup-cpp-ubuntu-mingw:latest
493- images : aminya/setup-cpp-ubuntu-mingw:22.04-1.2.2-amd64,aminya/setup-cpp-ubuntu-mingw:22.04-1.2.2-arm64
472+ inputs : aminya/${{ matrix.container.image }}:latest
473+ images : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-amd64,aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-arm64
494474 push : true
495475 amend : true
496476
0 commit comments