Skip to content

Commit

Permalink
GitHub Actions: update to clang-format 12
Browse files Browse the repository at this point in the history
clang-format-6.0 is no longer installable
  • Loading branch information
stapelberg committed Jan 7, 2023
1 parent d7bb4c9 commit 07ad5ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- uses: actions/checkout@v2

- name: install build dependencies
run: sudo apt update && sudo apt install clang-format-6.0 libconfuse-dev libyajl-dev libasound2-dev libpulse-dev libnl-genl-3-dev asciidoc xmlto libcap2-bin pulseaudio meson
run: sudo apt update && sudo apt install clang-format-12 libconfuse-dev libyajl-dev libasound2-dev libpulse-dev libnl-genl-3-dev asciidoc xmlto libcap2-bin pulseaudio meson

- name: Ensure all files were formatted as per clang-format
run: |
clang-format-6.0 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
clang-format-12 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
- name: build
run: |
Expand Down

0 comments on commit 07ad5ae

Please sign in to comment.