diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index fa55ed9ef7160..2a14c55a141c8 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -54,6 +54,10 @@ jobs: std: 20 cxxflags: -stdlib=libc++ install: sudo apt install libc++-11-dev libc++abi-11-dev + - cxx: clang++-16 + build_type: Debug + std: 20 + cxxflags: -stdlib=libc++ - shared: -DBUILD_SHARED_LIBS=ON steps: @@ -72,6 +76,15 @@ jobs: # sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic-updates universe' if: ${{ matrix.cxx == 'g++-4.8' }} + - name: Add repository for Clang 16 + run: | + sudo apt-get install -y lsb-release wget software-properties-common gnupg + sudo apt-get install -y g++-11 libstdc++-11-dev + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-16 main" + sudo apt-get install -y clang-16 libomp-16-dev libc++-16-dev libc++abi-16-dev + if: ${{ matrix.cxx == 'clang++-16' }} + - name: Add ubuntu mirrors run: | # Github Actions caching proxy is at times unreliable