File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,24 +15,27 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18- - name : Set up Clang 20
18+ - name : Set up Clang 22
1919 uses : egor-tensin/setup-clang@v2
2020 with :
21- version : " 20 "
21+ version : " 22 "
2222 platform : x64
2323
2424 - name : Install libc++ and libc++abi
2525 run : |
2626 sudo apt update
27- sudo apt install -y clang libc++-dev libc++abi-dev ccache libclang-rt-20-dev
27+ sudo apt install -y clang-22 lld-22 ninja-build libc++-22-dev libc++abi-22-dev ccache libclang-rt-22-dev libunwind-22-dev
28+ echo "PATH=/usr/lib/llvm-22/bin:$PATH" >> $GITHUB_ENV
29+ echo "LD_LIBRARY_PATH=/usr/lib/llvm-22/lib:$PATH" >> $GITHUB_ENV
2830
2931 - name : Build and Test with Clang and show versions
3032 run : |
3133 echo "clang version"
3234 clang --version
3335 echo "clang++ version"
3436 clang++ -stdlib=libc++ --version
35- dpkg -L clang
37+ echo "ld.lld version"
38+ ld.lld --version
3639 echo '#include <iostream>' > test.cpp
3740 echo 'int main() { std::cout << "Hello, Clang on Ubuntu 24.04!" << std::endl; return 0; }' >> test.cpp
3841 clang++ -std=c++17 -stdlib=libc++ test.cpp -o test_clang
Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ jobs:
1515 if : github.repository == 'qualcomm/eld'
1616
1717 steps :
18- - name : Set up Clang 21
18+ - name : Set up Clang 22
1919 uses : egor-tensin/setup-clang@v2
2020 with :
21- version : " 21 "
21+ version : " 22 "
2222 platform : x64
2323
2424 - name : Install libc++ and libc++abi
2525 run : |
2626 sudo apt update
27- sudo apt install -y clang-21 lld-21 ninja-build libc++-21 -dev libc++abi-21 -dev ccache libclang-rt-21 -dev libunwind-21 -dev
28- echo "PATH=/usr/lib/llvm-21 /bin:$PATH" >> $GITHUB_ENV
29- echo "LD_LIBRARY_PATH=/usr/lib/llvm-21 /lib:$PATH" >> $GITHUB_ENV
27+ sudo apt install -y clang-22 lld-22 ninja-build libc++-22 -dev libc++abi-22 -dev ccache libclang-rt-22 -dev libunwind-22 -dev
28+ echo "PATH=/usr/lib/llvm-22 /bin:$PATH" >> $GITHUB_ENV
29+ echo "LD_LIBRARY_PATH=/usr/lib/llvm-22 /lib:$PATH" >> $GITHUB_ENV
3030
3131 - name : Build and Test with Clang and show versions
3232 run : |
You can’t perform that action at this time.
0 commit comments