File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,15 @@ jobs:
7979 run : |
8080 sudo apt-get update
8181 sudo apt-get install libunwind-dev
82+ # Detect the Ubuntu version codename
83+ DIST_CODENAME=$(lsb_release -cs)
8284 sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
8385 version=${{ matrix.version }}
84- if [[ $version -ge 13 ]]; then
85- sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-$version main"
86- fi
86+ sudo add-apt-repository "deb http://apt.llvm.org/$DIST_CODENAME/ llvm-toolchain-$DIST_CODENAME-$version main"
8787 sudo apt-get update
8888 sudo apt-get install clang-$version lld libc++-$version-dev libc++abi-$version-dev
8989 echo "CC=clang-$version" >> ${GITHUB_ENV}
9090 echo "CXX=clang++-$version" >> ${GITHUB_ENV}
91- echo "CC=clang-$version" >> ${GITHUB_ENV}
9291 echo "LDFLAGS=-fuse-ld=lld" >> ${GITHUB_ENV}
9392 - name : Initialize MSVC ${{ matrix.version }}
9493 if : startsWith(matrix.os, 'windows-')
You can’t perform that action at this time.
0 commit comments