From 07ad5aef2deea1f10eb6c544593e7a87205f24f8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 7 Jan 2023 09:48:49 +0100 Subject: [PATCH] GitHub Actions: update to clang-format 12 clang-format-6.0 is no longer installable --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f9dec17..26d8416a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: |