Skip to content

Commit

Permalink
Upgrade to llvm 19
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenewald committed Nov 18, 2024
1 parent a0f76e5 commit 1d7ee90
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/exchange-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ jobs:
- uses: actions/setup-python@v4
with: { python-version: "3.12" }

- name: Install LLVM 18
- name: Install LLVM 19
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
sudo apt update
sudo apt install llvm-18 llvm-18-dev llvm-18-tools clang-18 clang-tidy-18 clang-format-18 clang-tools-18 libclang-18-dev -y
sudo apt install llvm-19 llvm-19-dev llvm-19-tools clang-19 clang-tidy-19 clang-format-19 clang-tools-19 libclang-19-dev -y
- name: Install codespell
run: pip3 install codespell

- name: Lint
run: cmake -D FORMAT_COMMAND=clang-format-18 -P cmake/lint.cmake
run: cmake -D FORMAT_COMMAND=clang-format-19 -P cmake/lint.cmake

- name: Spell check
run: cmake -P cmake/spell.cmake
Expand All @@ -63,10 +63,10 @@ jobs:


env:
CC: clang-18
CXX: clang++-18
CLANG_DIR: '/usr/lib/llvm-18/lib/cmake/clang'
LLVM_DIR: '/usr/lib/llvm-18/lib/cmake/llvm'
CC: clang-19
CXX: clang++-19
CLANG_DIR: '/usr/lib/llvm-19/lib/cmake/clang'
LLVM_DIR: '/usr/lib/llvm-19/lib/cmake/llvm'

steps:
- uses: actions/checkout@v3
Expand All @@ -81,12 +81,12 @@ jobs:
uses: actions/setup-python@v4
with: { python-version: "3.12-dev" }

- name: Install LLVM 18
- name: Install LLVM 19
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
sudo apt update
sudo apt install llvm-18 llvm-18-dev llvm-18-tools clang-18 clang-tidy-18 clang-tools-18 libclang-18-dev -y
sudo apt install llvm-19 llvm-19-dev llvm-19-tools clang-19 clang-tidy-19 clang-tools-19 libclang-19-dev -y
- name: Install Cache Conan dependencies
id: cache-conan
Expand Down Expand Up @@ -138,22 +138,22 @@ jobs:


env:
CC: clang-18
CXX: clang++-18
CLANG_DIR: '/usr/lib/llvm-18/lib/cmake/clang'
LLVM_DIR: '/usr/lib/llvm-18/lib/cmake/llvm'
CC: clang-19
CXX: clang++-19
CLANG_DIR: '/usr/lib/llvm-19/lib/cmake/clang'
LLVM_DIR: '/usr/lib/llvm-19/lib/cmake/llvm'

steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Install LLVM 18
- name: Install LLVM 19
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
sudo apt update
sudo apt install llvm-18 llvm-18-dev llvm-18-tools clang-18 clang-tidy-18 clang-tools-18 libclang-18-dev -y
sudo apt install llvm-19 llvm-19-dev llvm-19-tools clang-19 clang-tidy-19 clang-tools-19 libclang-19-dev -y
- name: Install static analyzers
if: matrix.os == 'ubuntu-22.04'
Expand All @@ -162,7 +162,7 @@ jobs:
sudo update-alternatives --install
/usr/bin/clang-tidy clang-tidy
/usr/bin/clang-tidy-18 160
/usr/bin/clang-tidy-19 160
- name: Install Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -225,10 +225,10 @@ jobs:
working-directory: exchange

env:
CC: clang-18
CXX: clang++-18
CLANG_DIR: '/usr/lib/llvm-18/lib/cmake/clang'
LLVM_DIR: '/usr/lib/llvm-18/lib/cmake/llvm'
CC: clang-19
CXX: clang++-19
CLANG_DIR: '/usr/lib/llvm-19/lib/cmake/clang'
LLVM_DIR: '/usr/lib/llvm-19/lib/cmake/llvm'
NUTC_WRAPPER_BINARY_PATH: ${{ github.workspace }}/exchange/build/WRAPPER
NUTC_CPP_TEMPLATE_PATH: ${{ github.workspace }}/exchange/template.cpp
NUTC_LINTER_SPAWNER_BINARY_PATH: ${{ github.workspace }}/exchange/build/LINTER_spawner
Expand All @@ -238,12 +238,12 @@ jobs:
with:
submodules: 'recursive'

- name: Install LLVM 18
- name: Install LLVM 19
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
sudo apt update
sudo apt install llvm-18 llvm-18-dev llvm-18-tools clang-18 clang-tidy-18 clang-tools-18 libclang-18-dev -y
sudo apt install llvm-19 llvm-19-dev llvm-19-tools clang-19 clang-tidy-19 clang-tools-19 libclang-19-dev -y
- name: Install static analyzers
if: matrix.os == 'ubuntu-22.04'
Expand All @@ -252,7 +252,7 @@ jobs:
sudo update-alternatives --install
/usr/bin/clang-tidy clang-tidy
/usr/bin/clang-tidy-18 160
/usr/bin/clang-tidy-19 160
- name: Install Python
uses: actions/setup-python@v4
Expand Down

0 comments on commit 1d7ee90

Please sign in to comment.