@@ -12,6 +12,7 @@ concurrency:
12
12
13
13
env :
14
14
NODE_OPTIONS : --enable-source-maps
15
+ version : " 1.3.0"
15
16
16
17
jobs :
17
18
Build :
@@ -239,25 +240,25 @@ jobs:
239
240
platform :
240
241
- linux/amd64
241
242
container :
242
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "24.04", tag: "24.04-1.3.0 " }
243
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "22.04", tag: "22.04-1.3.0 " }
244
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "20.04", tag: "20.04-1.3.0 " }
245
- - { distro: "fedora", image: "setup-cpp-fedora", tag: "40-1.3.0 " }
246
- - { distro: "arch", image: "setup-cpp-arch", tag: "base-1.3.0 " }
247
- - { distro: "alpine", image: "setup-cpp-alpine", BASE_VERSION : "22-alpine3 .21", tag : "3.21-1.3.0 " }
243
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04" }
244
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04" }
245
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04" }
246
+ - { distro: "fedora", image: "setup-cpp-fedora", tag: "40" }
247
+ - { distro: "arch", image: "setup-cpp-arch", tag: "base" }
248
+ - { distro: "alpine", image: "setup-cpp-alpine", tag : "3 .21", base_version : "22-alpine3.21 " }
248
249
include :
249
250
- os : ubuntu-24.04-arm
250
251
platform : linux/arm64
251
- container : { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "24.04", tag: "24.04-1.3.0 " }
252
+ container : { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04" }
252
253
- os : ubuntu-24.04-arm
253
254
platform : linux/arm64
254
- container : { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "22.04", tag: "22.04-1.3.0 " }
255
+ container : { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04" }
255
256
- os : ubuntu-24.04-arm
256
257
platform : linux/arm64
257
- container : { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "20.04", tag: "20.04-1.3.0 " }
258
+ container : { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04" }
258
259
- os : ubuntu-24.04-arm
259
260
platform : linux/arm64
260
- container : { distro: "alpine", image: "setup-cpp-alpine", BASE_VERSION : "22-alpine3 .21", tag : "3.21-1.3.0 " }
261
+ container : { distro: "alpine", image: "setup-cpp-alpine", tag : "3 .21", base_version : "22-alpine3.21 " }
261
262
steps :
262
263
- uses : actions/checkout@v4
263
264
with :
@@ -294,18 +295,21 @@ jobs:
294
295
load : true
295
296
provenance : false
296
297
platforms : ${{ matrix.platform }}
297
- tags : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
298
- cache-from : type=registry,ref=aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
298
+ tags : aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
299
+ cache-from : type=registry,ref=aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
299
300
cache-to : type=inline
300
- build-args : BASE_VERSION=${{ matrix.container.BASE_VERSION || '' }}
301
+ build-args : BASE_VERSION=${{ matrix.container.base_version || matrix.container.tag }}
301
302
302
303
- name : Tag latest locally
303
304
run : |
304
- docker tag aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}:latest
305
+ docker tag aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}:latest
306
+ docker tag aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}
305
307
306
308
- name : Push latest to Docker Hub
307
309
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'alpine' }}
308
- run : docker push aminya/${{ matrix.container.image }}:latest
310
+ run : |
311
+ docker push aminya/${{ matrix.container.image }}:latest
312
+ docker push aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}
309
313
310
314
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}
311
315
if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
@@ -326,17 +330,20 @@ jobs:
326
330
load : true
327
331
provenance : false
328
332
platforms : ${{ matrix.platform }}
329
- tags : aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
330
- cache-from : type=registry,ref=aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
333
+ tags : aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
334
+ cache-from : type=registry,ref=aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
331
335
cache-to : type=inline
332
336
333
337
- name : Tag latest locally
334
338
run : |
335
- docker tag aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:latest
339
+ docker tag aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:latest
340
+ docker tag aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}
336
341
337
342
- name : Push latest to Docker Hub
338
343
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'alpine' }}
339
- run : docker push aminya/${{ matrix.container.image }}-llvm:latest
344
+ run : |
345
+ docker push aminya/${{ matrix.container.image }}-llvm:latest
346
+ docker push aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}
340
347
341
348
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-llvm
342
349
if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
@@ -355,7 +362,7 @@ jobs:
355
362
file : ./dev/docker/examples/${{ matrix.container.distro }}-llvm.dockerfile
356
363
push : false
357
364
platforms : ${{ matrix.platform }}
358
- tags : aminya/test-${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}
365
+ tags : aminya/test-${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ env.version }}
359
366
360
367
- name : Build setup-cpp-${{matrix.container.distro }}-gcc
361
368
id : build_gcc
@@ -367,17 +374,20 @@ jobs:
367
374
load : true
368
375
provenance : false
369
376
platforms : ${{ matrix.platform }}
370
- tags : aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
371
- cache-from : type=registry,ref=aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
377
+ tags : aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
378
+ cache-from : type=registry,ref=aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
372
379
cache-to : type=inline
373
380
374
381
- name : Tag latest locally
375
382
run : |
376
- docker tag aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:latest
383
+ docker tag aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:latest
384
+ docker tag aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}
377
385
378
386
- name : Push latest to Docker Hub
379
387
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'alpine' }}
380
- run : docker push aminya/${{ matrix.container.image }}-gcc:latest
388
+ run : |
389
+ docker push aminya/${{ matrix.container.image }}-gcc:latest
390
+ docker push aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}
381
391
382
392
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-gcc
383
393
if : ${{ github.event_name != 'pull_request' || contains(github.event.head_commit.message, '[push docker]') }}
@@ -396,7 +406,7 @@ jobs:
396
406
file : ./dev/docker/examples/${{ matrix.container.distro }}-gcc.dockerfile
397
407
push : false
398
408
platforms : ${{ matrix.platform }}
399
- tags : aminya/test-${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}
409
+ tags : aminya/test-${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ env.version }}
400
410
401
411
- name : Build setup-cpp-${{matrix.container.distro }}-mingw
402
412
id : build_mingw
@@ -409,18 +419,20 @@ jobs:
409
419
load : true
410
420
provenance : false
411
421
platforms : ${{ matrix.platform }}
412
- tags : aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
413
- cache-from : type=registry,ref=aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
422
+ tags : aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
423
+ cache-from : type=registry,ref=aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }}
414
424
cache-to : type=inline
415
425
416
426
- name : Tag latest locally
417
427
if : ${{ matrix.container.distro != 'fedora' && !(matrix.container.distro == 'alpine' && matrix.platform == 'linux/arm64') }}
418
428
run : |
419
- docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
420
-
429
+ docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
430
+ docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ env.version }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}
421
431
- name : Push latest to Docker Hub
422
432
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'fedora' && matrix.container.distro != 'alpine' }}
423
- run : docker push aminya/${{ matrix.container.image }}-mingw:latest
433
+ run : |
434
+ docker push aminya/${{ matrix.container.image }}-mingw:latest
435
+ docker push aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}
424
436
425
437
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-mingw
426
438
if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'fedora' && !(matrix.container.distro == 'alpine' && matrix.platform == 'linux/arm64') }}
@@ -439,7 +451,7 @@ jobs:
439
451
file : ./dev/docker/examples/${{ matrix.container.distro }}-mingw.dockerfile
440
452
push : false
441
453
platforms : ${{ matrix.platform }}
442
- tags : aminya/test-${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}
454
+ tags : aminya/test-${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ env.version }}
443
455
444
456
Docker-Manifest :
445
457
needs : [Docker]
@@ -449,25 +461,25 @@ jobs:
449
461
fail-fast : false
450
462
matrix :
451
463
container :
452
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04-1.3.0 ", suffix: "", latest: false }
453
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04-1.3.0 ", suffix: "-llvm", latest: false }
454
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04-1.3.0 ", suffix: "-gcc", latest: false }
455
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04-1.3.0 ", suffix: "-mingw", latest: false }
456
-
457
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.3.0 ", suffix: "", latest: false }
458
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.3.0 ", suffix: "-llvm", latest: false }
459
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.3.0 ", suffix: "-gcc", latest: false }
460
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04-1.3.0 ", suffix: "-mingw", latest: false }
461
-
462
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0 ", suffix: "", latest: true }
463
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0 ", suffix: "-llvm", latest: true }
464
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0 ", suffix: "-gcc", latest: true }
465
- - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0 ", suffix: "-mingw", latest: true }
466
-
467
- - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21-1.3.0 ", suffix: "", latest: true }
468
- - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21-1.3.0 ", suffix: "-llvm", latest: true }
469
- - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21-1.3.0 ", suffix: "-gcc", latest: true }
470
- - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21-1.3.0 ", suffix: "-mingw", latest: true }
464
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04", suffix: "", latest: false }
465
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04", suffix: "-llvm", latest: false }
466
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04", suffix: "-gcc", latest: false }
467
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "20.04", suffix: "-mingw", latest: false }
468
+
469
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04", suffix: "", latest: false }
470
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04", suffix: "-llvm", latest: false }
471
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04", suffix: "-gcc", latest: false }
472
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "22.04", suffix: "-mingw", latest: false }
473
+
474
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04", suffix: "", latest: true }
475
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04", suffix: "-llvm", latest: true }
476
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04", suffix: "-gcc", latest: true }
477
+ - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04", suffix: "-mingw", latest: true }
478
+
479
+ - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21", suffix: "", latest: true }
480
+ - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21", suffix: "-llvm", latest: true }
481
+ - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21", suffix: "-gcc", latest: true }
482
+ - { distro: "alpine", image: "setup-cpp-alpine", tag: "3.21", suffix: "-mingw", latest: true }
471
483
steps :
472
484
- name : Set up Docker Buildx
473
485
uses : docker/setup-buildx-action@v3
@@ -478,18 +490,25 @@ jobs:
478
490
username : aminya
479
491
password : ${{ secrets.DOCKERHUB_TOKEN }}
480
492
493
+ - uses : Noelware/docker-manifest-action@0.4.3
494
+ with :
495
+ inputs : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-${{ env.version }}
496
+ images : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-${{ env.version }}-amd64,aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-${{ env.version }}-arm64
497
+ push : true
498
+ amend : true
499
+
481
500
- uses : Noelware/docker-manifest-action@0.4.3
482
501
with :
483
502
inputs : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}
484
- images : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-amd64,aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-arm64
503
+ images : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-${{ env.version }}- amd64,aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-${{ env.version }}-arm64
485
504
push : true
486
505
amend : true
487
506
488
507
- uses : Noelware/docker-manifest-action@0.4.3
489
508
if : ${{ matrix.container.latest }}
490
509
with :
491
510
inputs : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:latest
492
- images : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-amd64,aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-arm64
511
+ images : aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-${{ env.version }}- amd64,aminya/${{ matrix.container.image }}${{ matrix.container.suffix }}:${{ matrix.container.tag }}-${{ env.version }}-arm64
493
512
push : true
494
513
amend : true
495
514
0 commit comments