Skip to content

Commit

Permalink
Update all actions to use clang 19
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaCat-OuO committed Nov 14, 2024
1 parent 7a2a1cf commit e374f0a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@ jobs:
uses: actions/checkout@v4
with:
repository: include-what-you-use/include-what-you-use
ref: 377eaef70cdda47368939f4d9beabfabe3f628f0
ref: 30e221fad0967aa6bcb279600127748ed3dab7ad
path: include-what-you-use

- name: Download required linux packages
run: |
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main'
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt update
sudo apt install -y libclang-18-dev clang-18 libc++-18-dev
sudo apt install -y libclang-19-dev clang-19 libc++-19-dev
- name: Set up include-what-you-use
run: |
mkdir build && cd build
cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH="/usr/lib/llvm-18" ..
cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH="/usr/lib/llvm-19" ..
sudo make install
working-directory: include-what-you-use

Expand All @@ -99,7 +99,7 @@ jobs:
uses: actions/checkout@v4

- name: Run clang-format style check
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e
uses: jidicula/clang-format-action@c74383674bf5f7c69f60ce562019c1c94bc1421a
id: clang-format
with:
clang-format-version: '18'
clang-format-version: '19'
10 changes: 5 additions & 5 deletions .github/workflows/pikafish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ jobs:
run: |
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
echo | sudo ./llvm.sh 18
echo | sudo ./llvm.sh 19
rm llvm.sh
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
sudo update-alternatives --install /usr/bin/llvm-profdata llvm-profdata /usr/bin/llvm-profdata-18 100
sudo update-alternatives --set clang++ /usr/bin/clang++-18
sudo update-alternatives --set llvm-profdata /usr/bin/llvm-profdata-18
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 100
sudo update-alternatives --install /usr/bin/llvm-profdata llvm-profdata /usr/bin/llvm-profdata-19 100
sudo update-alternatives --set clang++ /usr/bin/clang++-19
sudo update-alternatives --set llvm-profdata /usr/bin/llvm-profdata-19
- name: Setup msys and install required packages
if: runner.os == 'Windows'
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/tuning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install LLVM and Clang
if: runner.os == 'Linux'
run: |
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
echo | sudo ./llvm.sh 19
rm llvm.sh
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 100
sudo update-alternatives --set clang++ /usr/bin/clang++-19
- name: make
run: make clean && make -j build && make strip

Expand Down

0 comments on commit e374f0a

Please sign in to comment.