@@ -228,7 +228,7 @@ jobs:
228
228
node ./dist/legacy/setup-cpp.js --gcc true --cmake true
229
229
230
230
Docker :
231
- name : Docker-${{ matrix.container.image }}-${{ matrix.platform }}
231
+ name : Docker-${{ matrix.container.image }}-${{ matrix.platform }}-${{ matrix.container.tag }}
232
232
needs : [Build]
233
233
runs-on : ${{ matrix.os }}
234
234
strategy :
@@ -239,13 +239,21 @@ jobs:
239
239
platform :
240
240
- linux/amd64
241
241
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" }
243
245
- { distro: "fedora", image: "setup-cpp-fedora", tag: "40-1.2.2" }
244
246
- { distro: "arch", image: "setup-cpp-arch", tag: "base-1.2.2" }
245
247
include :
246
248
- os : ubuntu-24.04-arm
247
249
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" }
249
257
steps :
250
258
- uses : actions/checkout@v4
251
259
with :
@@ -285,6 +293,7 @@ jobs:
285
293
tags : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
286
294
cache-from : type=registry,ref=aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
287
295
cache-to : type=inline
296
+ build-args : BASE_VERSION=${{ matrix.container.BASE_VERSION || '' }}
288
297
289
298
- name : Tag latest locally
290
299
run : |
@@ -432,6 +441,14 @@ jobs:
432
441
needs : [Docker]
433
442
runs-on : ubuntu-24.04
434
443
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 }
435
452
steps :
436
453
- name : Set up Docker Buildx
437
454
uses : docker/setup-buildx-action@v3
@@ -444,53 +461,16 @@ jobs:
444
461
445
462
-
uses :
Noelware/[email protected]
446
463
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/[email protected]
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/[email protected]
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/[email protected]
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
468
466
push : true
469
467
amend : true
470
468
471
469
-
uses :
Noelware/[email protected]
470
+ if : ${{ matrix.container.latest }}
472
471
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/[email protected]
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/[email protected]
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/[email protected]
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
494
474
push : true
495
475
amend : true
496
476
0 commit comments