GitHub Actions: update to clang-format 12
clang-format-6.0 is no longer installable
This commit is contained in:
parent
d7bb4c9cb8
commit
07ad5aef2d
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -19,11 +19,11 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: install build dependencies
|
- 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
|
- name: Ensure all files were formatted as per clang-format
|
||||||
run: |
|
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
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user