Skip to content

Commit 334cd97

Browse files
committed
Test
1 parent 4a38b7e commit 334cd97

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/clang-format.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ jobs:
3131
run: |
3232
sudo apt-get update
3333
sudo apt-get install -y libdb-dev curl autoconf automake m4 libtool
34-
- name: Install clang-format 20
34+
- name: Install clang-format from LLVM
3535
run: |
36-
# Download pre-built binary directly
37-
cd /tmp
38-
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.1/clang+llvm-20.1.1-x86_64-linux-gnu-ubuntu-22.04.tar.xz
39-
tar xf clang+llvm-20.1.1-x86_64-linux-gnu-ubuntu-22.04.tar.xz
40-
sudo cp clang+llvm-20.1.1-x86_64-linux-gnu-ubuntu-22.04/bin/clang-format /usr/local/bin/clang-format
36+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
37+
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
38+
sudo apt-get update
39+
sudo apt-get install -y clang-format
4140
clang-format --version
4241
- name: Install Re2c
4342
run: |

0 commit comments

Comments
 (0)