@@ -244,6 +244,7 @@ jobs:
244244 - { distro: "ubuntu", image: "setup-cpp-ubuntu", BASE_VERSION: "20.04", tag: "20.04-1.3.0" }
245245 - { distro: "fedora", image: "setup-cpp-fedora", tag: "40-1.3.0" }
246246 - { 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" }
247248 include :
248249 - os : ubuntu-24.04-arm
249250 platform : linux/arm64
@@ -254,6 +255,9 @@ jobs:
254255 - os : ubuntu-24.04-arm
255256 platform : linux/arm64
256257 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" }
257261 steps :
258262 - uses : actions/checkout@v4
259263 with :
@@ -300,7 +304,7 @@ jobs:
300304 docker tag aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}:latest
301305
302306 - 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' }}
304308 run : docker push aminya/${{ matrix.container.image }}:latest
305309
306310 - name : Docker Readme for setup-cpp-${{matrix.container.distro }}
@@ -331,7 +335,7 @@ jobs:
331335 docker tag aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-llvm:latest
332336
333337 - 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' }}
335339 run : docker push aminya/${{ matrix.container.image }}-llvm:latest
336340
337341 - name : Docker Readme for setup-cpp-${{matrix.container.distro }}-llvm
@@ -372,7 +376,7 @@ jobs:
372376 docker tag aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-gcc:latest
373377
374378 - 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' }}
376380 run : docker push aminya/${{ matrix.container.image }}-gcc:latest
377381
378382 - name : Docker Readme for setup-cpp-${{matrix.container.distro }}-gcc
@@ -396,7 +400,7 @@ jobs:
396400
397401 - name : Build setup-cpp-${{matrix.container.distro }}-mingw
398402 id : build_mingw
399- if : ${{ matrix.container.distro != 'fedora' }}
403+ if : ${{ matrix.container.distro != 'fedora' && !(matrix.container.distro == 'alpine' && matrix.platform == 'linux/arm64') }}
400404 uses : docker/build-push-action@v6
401405 with :
402406 context : .
@@ -410,16 +414,16 @@ jobs:
410414 cache-to : type=inline
411415
412416 - name : Tag latest locally
413- if : ${{ matrix.container.distro != 'fedora' }}
417+ if : ${{ matrix.container.distro != 'fedora' && !(matrix.container.distro == 'alpine' && matrix.platform == 'linux/arm64') }}
414418 run : |
415419 docker tag aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }} aminya/${{ matrix.container.image }}-mingw:latest
416420
417421 - 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' }}
419423 run : docker push aminya/${{ matrix.container.image }}-mingw:latest
420424
421425 - 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') }}
423427 uses : peter-evans/dockerhub-description@v4
424428 with :
425429 username : aminya
@@ -428,7 +432,7 @@ jobs:
428432 readme-filepath : ./README_DOCKER.md
429433
430434 - 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' }}
432436 uses : docker/build-push-action@v6
433437 with :
434438 context : .
@@ -459,6 +463,11 @@ jobs:
459463 - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0", suffix: "-llvm", latest: true }
460464 - { distro: "ubuntu", image: "setup-cpp-ubuntu", tag: "24.04-1.3.0", suffix: "-gcc", latest: true }
461465 - { 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 }
462471 steps :
463472 - name : Set up Docker Buildx
464473 uses : docker/setup-buildx-action@v3
0 commit comments