Skip to content

Commit 82e1445

Browse files
committed
Fix falling compiler version selection
1 parent 836769f commit 82e1445

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/debian.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212
BUILDKIT_PROGRESS: plain
1313
CONAN_VERSION: 2.17.0
1414
NONROOT_USER: ci
15+
FALLBACK_GCC: 12
16+
FALLBACK_CLANG: 16
1517

1618
jobs:
1719
# Build the Docker image for Debian using different versions of GCC and Clang.
@@ -92,12 +94,12 @@ jobs:
9294
build-args: |
9395
BUILDKIT_DOCKERFILE_CHECK=skip=InvalidDefaultArgInFrom
9496
BUILDKIT_INLINE_CACHE=1
95-
CLANG_VERSION=${{ matrix.os.compiler_name == 'clang' && matrix.os.compiler_version || '' }}
97+
CLANG_VERSION=${{ matrix.os.compiler_name == 'clang' && matrix.os.compiler_version || env.FALLBACK_CLANG }}
98+
GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || env.FALLBACK_GCC }}
9699
CONAN_VERSION=${{ env.CONAN_VERSION }}
97-
DEBIAN_VERSION=${{ matrix.os.release }}
98-
GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || '' }}
99100
GITHUB_REPO=${{ github.repository }}
100101
NONROOT_USER=${{ env.NONROOT_USER }}
102+
DEBIAN_VERSION=${{ matrix.os.release }}
101103
context: docker/debian
102104
outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
103105
platforms: ${{ matrix.architecture.platform }}

.github/workflows/rhel.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ jobs:
3232
- release: 9.6
3333
compiler_name: gcc
3434
compiler_version: 14
35-
- release: 9.6
36-
compiler_name: clang
37-
compiler_version: ''
3835
runs-on: ${{ matrix.architecture.runner }}
3936
permissions:
4037
packages: write
@@ -86,7 +83,7 @@ jobs:
8683
BUILDKIT_DOCKERFILE_CHECK=skip=InvalidDefaultArgInFrom
8784
BUILDKIT_INLINE_CACHE=1
8885
CONAN_VERSION=${{ env.CONAN_VERSION }}
89-
GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || '' }}
86+
GCC_VERSION=${{ matrix.os.compiler_version }}
9087
GITHUB_REPO=${{ github.repository }}
9188
NONROOT_USER=${{ env.NONROOT_USER }}
9289
RHEL_VERSION=${{ matrix.os.release }}

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212
BUILDKIT_PROGRESS: plain
1313
CONAN_VERSION: 2.17.0
1414
NONROOT_USER: ci
15+
FALLBACK_GCC: 12
16+
FALLBACK_CLANG: 16
1517

1618
jobs:
1719
# Build the Docker image for Ubuntu using different versions of GCC and Clang.
@@ -90,9 +92,9 @@ jobs:
9092
build-args: |
9193
BUILDKIT_DOCKERFILE_CHECK=skip=InvalidDefaultArgInFrom
9294
BUILDKIT_INLINE_CACHE=1
93-
CLANG_VERSION=${{ matrix.os.compiler_name == 'clang' && matrix.os.compiler_version || '' }}
95+
CLANG_VERSION=${{ matrix.os.compiler_name == 'clang' && matrix.os.compiler_version || env.FALLBACK_CLANG }}
96+
GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || env.FALLBACK_GCC }}
9497
CONAN_VERSION=${{ env.CONAN_VERSION }}
95-
GCC_VERSION=${{ matrix.os.compiler_name == 'gcc' && matrix.os.compiler_version || '' }}
9698
GITHUB_REPO=${{ github.repository }}
9799
NONROOT_USER=${{ env.NONROOT_USER }}
98100
UBUNTU_VERSION=${{ matrix.os.release }}

0 commit comments

Comments
 (0)