@@ -244,6 +244,7 @@ jobs:
244
244
- { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "20.04", tag: "20.04-1.3.0" }
245
245
- { distro: "fedora", image: "setup-cpp-fedora", tag: "40-1.3.0" }
246
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" }
247
248
include :
248
249
- os : ubuntu-24.04-arm
249
250
platform : linux/arm64
@@ -254,6 +255,9 @@ jobs:
254
255
- os : ubuntu-24.04-arm
255
256
platform : linux/arm64
256
257
container : { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "20.04", tag: "20.04-1.3.0" }
258
+ - os : ubuntu-24.04-arm
259
+ platform : linux/arm64
260
+ container : { distro: "alpine", image: "setup-cpp-alpine", BASE_VERSION: "22-alpine3.21", tag: "3.21-1.3.0" }
257
261
steps :
258
262
- uses : actions/checkout@v4
259
263
with :
@@ -300,7 +304,7 @@ jobs:
300
304
docker tag aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}:latest
301
305
302
306
- name : Push latest to Docker Hub
303
- if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
307
+ if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'alpine' }}
304
308
run : docker push aminya/${{ matrix.container.image }}:latest
305
309
306
310
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}
@@ -331,7 +335,7 @@ jobs:
331
335
docker tag aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:latest
332
336
333
337
- name : Push latest to Docker Hub
334
- if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
338
+ if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'alpine' }}
335
339
run : docker push aminya/${{ matrix.container.image }}-llvm:latest
336
340
337
341
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-llvm
@@ -372,7 +376,7 @@ jobs:
372
376
docker tag aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:latest
373
377
374
378
- name : Push latest to Docker Hub
375
- if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' }}
379
+ if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'alpine' }}
376
380
run : docker push aminya/${{ matrix.container.image }}-gcc:latest
377
381
378
382
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-gcc
@@ -396,7 +400,7 @@ jobs:
396
400
397
401
- name : Build setup-cpp-${{matrix.container.distro }}-mingw
398
402
id : build_mingw
399
- if : ${{ matrix.container.distro != 'fedora' }}
403
+ if : ${{ matrix.container.distro != 'fedora' && !(matrix.container.distro == 'alpine' && matrix.platform == 'linux/arm64') }}
400
404
uses : docker/build-push-action@v6
401
405
with :
402
406
context : .
@@ -410,16 +414,16 @@ jobs:
410
414
cache-to : type=inline
411
415
412
416
- name : Tag latest locally
413
- if : ${{ matrix.container.distro != 'fedora' }}
417
+ if : ${{ matrix.container.distro != 'fedora' && !(matrix.container.distro == 'alpine' && matrix.platform == 'linux/arm64') }}
414
418
run : |
415
419
docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
416
420
417
421
- name : Push latest to Docker Hub
418
- if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'fedora' }}
422
+ if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'ubuntu' && matrix.container.distro != 'fedora' && matrix.container.distro != 'alpine' }}
419
423
run : docker push aminya/${{ matrix.container.image }}-mingw:latest
420
424
421
425
- name : Docker Readme for setup-cpp-${{matrix.container.distro }}-mingw
422
- if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'fedora' }}
426
+ if : ${{ github.event_name != 'pull_request' && matrix.container.distro != 'fedora' && !(matrix.container.distro == 'alpine' && matrix.platform == 'linux/arm64') }}
423
427
uses : peter-evans/dockerhub-description@v4
424
428
with :
425
429
username : aminya
@@ -428,7 +432,7 @@ jobs:
428
432
readme-filepath : ./README_DOCKER.md
429
433
430
434
- name : Test Mingw
431
- if : ${{ !contains(github.event.head_commit.message, '[skip test]') && matrix.container.distro != 'fedora' }}
435
+ if : ${{ !contains(github.event.head_commit.message, '[skip test]') && matrix.container.distro != 'fedora' && matrix.container.distro != 'alpine' }}
432
436
uses : docker/build-push-action@v6
433
437
with :
434
438
context : .
@@ -459,6 +463,11 @@ jobs:
459
463
- { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0", suffix: "-llvm", latest: true }
460
464
- { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0", suffix: "-gcc", latest: true }
461
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 }
462
471
steps :
463
472
- name : Set up Docker Buildx
464
473
uses : docker/setup-buildx-action@v3
0 commit comments