Skip to content

Commit

Permalink
Use LLVM 18 for Linux
Browse files Browse the repository at this point in the history
This resolves profile data warning in previous workflow builds.
  • Loading branch information
PikaCat-OuO committed Oct 13, 2024
1 parent 060bc59 commit 5cf0307
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pikafish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ jobs:
- name: Install LLVM and Clang
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install clang llvm
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
echo | sudo ./llvm.sh 18
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
- name: Setup msys and install required packages
if: runner.os == 'Windows'
Expand Down

0 comments on commit 5cf0307

Please sign in to comment.