Skip to content

Commit 8b6aeb1

Browse files
committed
Fix clang format CI
1 parent c62bb49 commit 8b6aeb1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/style.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
check-style:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
strategy:
1212
fail-fast: false
1313
steps:
@@ -17,7 +17,12 @@ jobs:
1717
- name: Prepare
1818
run: |
1919
sudo apt-get update -y
20-
sudo apt-get install -y pkg-config cmake cmake build-essential shellcheck clang-format
20+
sudo apt-get install -y pkg-config cmake cmake build-essential shellcheck
21+
wget https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-46b8640/clang-format-10_linux-amd64
22+
echo "b8ed0cfc9cded28f8c0c9dd0da402d1287453b7d55a68bf243b432035aebcaa4720bfff22440d1f1c5d4c82f7b8d85948214cca85a2aa976589b88459e440521 clang-format-10_linux-amd64" | sha512sum -c
23+
mv clang-format-10_linux-amd64 ~/.local/bin/clang-format
24+
mkdir -p ~/.local/bin/
25+
chmod +x ~/.local/bin/clang-format
2126
- name: Check clang format version
2227
run: |
2328
clang-format -version # expect 10

0 commit comments

Comments
 (0)