Skip to content

Commit fe166b3

Browse files
author
chen
committed
update clang install
1 parent 97e4f67 commit fe166b3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/pr-checks.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ jobs:
2828
key: clang-format-20.1.5
2929

3030
- name: Install clang-format 20.1.5
31-
if: steps.clang-cache.outputs.cache-hit != 'true'
3231
run: |
33-
echo "Installing clang-format 20.1.5..."
34-
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.5/clang+llvm-20.1.5-x86_64-linux-gnu-ubuntu-22.04.tar.xz
35-
tar xf clang+llvm-20.1.5-x86_64-linux-gnu-ubuntu-22.04.tar.xz
36-
sudo mv clang+llvm-20.1.5-x86_64-linux-gnu-ubuntu-22.04 /usr/local/clang-20.1.5
37-
echo "/usr/local/clang-20.1.5/bin" >> $GITHUB_PATH
32+
sudo apt update
33+
sudo apt install -y wget gnupg
34+
wget https://apt.llvm.org/llvm.sh
35+
chmod +x llvm.sh
36+
sudo ./llvm.sh 20
37+
sudo ln -sf /usr/bin/clang-format-20 /usr/bin/clang-format
38+
clang-format --version # optional sanity check
3839
3940
- name: Verify clang-format installation
4041
run: |

0 commit comments

Comments
 (0)