File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,14 @@ jobs:
28
28
key : clang-format-20.1.5
29
29
30
30
- name : Install clang-format 20.1.5
31
- if : steps.clang-cache.outputs.cache-hit != 'true'
32
31
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
38
39
39
40
- name : Verify clang-format installation
40
41
run : |
You can’t perform that action at this time.
0 commit comments