Skip to content

Commit b29e060

Browse files
committed
use clang-format-18 on check-genesis-hooks workflow
1 parent 6efb13a commit b29e060

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/check-genesis-hooks.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
check-genesis-hooks:
99
runs-on: ubuntu-22.04
1010
env:
11-
CLANG_VERSION: 10
11+
CLANG_VERSION: 18
1212
name: Verify xahau.h is in sync with genesis hooks
1313

1414
steps:
@@ -23,14 +23,17 @@ jobs:
2323
sudo cp binaryen-version_100/bin/* /usr/local/bin/
2424
wasm-opt --version
2525
26-
- name: install clang-format
26+
- name: Install clang-format
2727
run: |
28-
sudo apt-get update -y
29-
sudo apt-get install -y libtinfo5
30-
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/clang+llvm-10.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz
31-
tar -xf clang+llvm-10.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz
32-
sudo mv clang+llvm-10.0.1-x86_64-linux-gnu-ubuntu-16.04 /opt/clang-10
33-
sudo ln -s /opt/clang-10/bin/clang-format /usr/local/bin/clang-format-10
28+
codename=$( lsb_release --codename --short )
29+
sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null <<EOF
30+
deb http://apt.llvm.org/${codename}/ llvm-toolchain-${codename}-${CLANG_VERSION} main
31+
deb-src http://apt.llvm.org/${codename}/ llvm-toolchain-${codename}-${CLANG_VERSION} main
32+
EOF
33+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add
34+
sudo apt-get update
35+
sudo apt-get install clang-format-${CLANG_VERSION}
36+
clang-format --version
3437
3538
# Install wasienv (WebAssembly SDK)
3639
- name: Install wasienv

0 commit comments

Comments
 (0)