Skip to content

Commit 0da2b01

Browse files
committed
Changed distribution codename to be jammy when clang version is older
1 parent 4069fad commit 0da2b01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/github-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ jobs:
7979
run: |
8080
sudo apt-get update
8181
sudo apt-get install libunwind-dev
82-
# Detect the Ubuntu version codename
82+
# Detect the Ubuntu distribution codename
8383
DIST_CODENAME=$(lsb_release -cs)
84+
if [[ "$DIST_CODENAME" = "noble" && "$version" -le 12 ]]; then
85+
DIST_CODENAME="jammy"
86+
fi
8487
sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
8588
version=${{ matrix.version }}
8689
sudo add-apt-repository "deb http://apt.llvm.org/$DIST_CODENAME/ llvm-toolchain-$DIST_CODENAME-$version main"

0 commit comments

Comments
 (0)