@@ -19,32 +19,34 @@ jobs:
1919 gcc :
2020 strategy :
2121 matrix :
22- platform :
23- - os : jammy
24- compiler : gcc
25- version : 12
26- - os : noble
27- compiler : gcc
28- version : 13
29- - os : noble
30- compiler : gcc
31- version : 14
32- - os : noble
33- compiler : clang
34- version : 16
35- - os : noble
36- compiler : clang
37- version : 17
38- - os : noble
39- compiler : clang
40- version : 18
41- - os : noble
42- compiler : clang
43- version : 19
4422 architecture :
45- - linux/amd64
46- - linux/arm64
47- runs-on : ubuntu-24.04${{ matrix.architecture == 'linux/arm64' && '-arm' || '' }}
23+ - platform : linux/amd64
24+ runner : ubuntu-24.04
25+ - platform : linux/arm64
26+ runner : ubuntu-24.04-arm
27+ os :
28+ - distro : jammy
29+ compiler_name : gcc
30+ compiler_version : 12
31+ - distro : noble
32+ compiler_name : gcc
33+ compiler_version : 13
34+ - distro : noble
35+ compiler_name : gcc
36+ compiler_version : 14
37+ - distro : noble
38+ compiler_name : clang
39+ compiler_version : 16
40+ - distro : noble
41+ compiler_name : clang
42+ compiler_version : 17
43+ - distro : noble
44+ compiler_name : clang
45+ compiler_version : 18
46+ - distro : noble
47+ compiler_name : clang
48+ compiler_version : 19
49+ runs-on : ${{ matrix.architecture.runner }}
4850 steps :
4951 - name : Checkout repository
5052 uses : actions/checkout@v4
@@ -64,24 +66,24 @@ jobs:
6466 # uppercase, which is not permitted by the Docker registry.
6567 GITHUB_REPO=${{ github.repository }}
6668 CONTAINER_REPOSITORY=${GITHUB_REPO@L}
67- echo "CONTAINER_IMAGE=${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/ubuntu-${{ matrix.platform.os }}:${{ matrix.platform.compiler }}${{ matrix.platform.version }}" >> $GITHUB_ENV
69+ echo "CONTAINER_IMAGE=${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/ubuntu-${{ matrix.os.distro }}:${{ matrix.os.compiler_name }}${{ matrix.os.compiler_version }}" >> $GITHUB_ENV
6870 - name : Build and push the Docker image
6971 uses : docker/build-push-action@v6
7072 with :
7173 build-args : |
7274 BUILDKIT_DOCKERFILE_CHECK=skip=InvalidDefaultArgInFrom
7375 BUILDKIT_INLINE_CACHE=1
74- CLANG_VERSION=${{ matrix.platform.compiler == 'clang' && matrix.platform.version || '' }}
76+ CLANG_VERSION=${{ matrix.os.compiler_name == 'clang' && matrix.os.compiler_version || '' }}
7577 CONAN_VERSION=${{ env.CONAN_VERSION }}
76- GCC_VERSION=${{ matrix.platform.compiler == 'gcc' && matrix.platform.version || '' }}
78+ GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || '' }}
7779 GITHUB_REPO=${{ github.repository }}
7880 NONROOT_USER=${{ env.NONROOT_USER }}
79- UBUNTU_VERSION=${{ matrix.platform.os }}
81+ UBUNTU_VERSION=${{ matrix.os.distro }}
8082 context : docker/ubuntu
8183 outputs : type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
82- platforms : ${{ matrix.architecture }}
84+ platforms : ${{ matrix.architecture.platform }}
8385 provenance : mode=max
8486 push : true
8587 sbom : true
8688 tags : ${{ env.CONTAINER_IMAGE }}
87- target : ${{ matrix.platform.compiler }}
89+ target : ${{ matrix.os.compiler_name }}
0 commit comments