From 9bd1da18759f0e58f7fcb61ba2872a32efff3ccd Mon Sep 17 00:00:00 2001 From: Sergei Shirokov Date: Mon, 6 May 2024 14:15:55 +0300 Subject: [PATCH] =?UTF-8?q?try=20to=20switch=20llvm=2012=20=E2=86=92=2018?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c3f784f..58fb66b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,16 +51,16 @@ jobs: - name: Install Dependencies run: | sudo apt update - wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 12 - sudo apt install clang-tidy-12 clang-format-12 + wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 18 + sudo apt install clang-tidy-18 clang-format-18 - name: Static analysis working-directory: ${{github.workspace}}/stm32/libcanard/bxcan/ - run: clang-tidy-12 src/*.c --extra-arg='-DBXCAN_MAX_IFACE_INDEX=1' --extra-arg='-DBXCAN_BUSYWAIT_DELAY_SYSTEM_CORE_CLOCK=72000000' + run: clang-tidy-18 src/*.c --extra-arg='-DBXCAN_MAX_IFACE_INDEX=1' --extra-arg='-DBXCAN_BUSYWAIT_DELAY_SYSTEM_CORE_CLOCK=72000000' - name: Format check working-directory: ${{github.workspace}}/stm32/libcanard/bxcan/ run: | - clang-format-12 -i -fallback-style=none -style=file --verbose src/*.[ch] + clang-format-18 -i -fallback-style=none -style=file --verbose src/*.[ch] modified="$(git status --porcelain --untracked-files=no)" if [ -n "$modified" ]; then echo "Please format code properly."; exit 1; fi