From c626642461782fc7213f67e5914c1d14142fd8b4 Mon Sep 17 00:00:00 2001 From: David Andrs Date: Sun, 15 Feb 2026 05:54:15 -0700 Subject: [PATCH] Switch clang-format action --- .github/workflows/qa.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index c880bad..ce53948 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -8,17 +8,28 @@ on: branches: - main +env: + VERSION: 14 + jobs: formatting-check: name: Check formatting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Clang-format style check - uses: jidicula/clang-format-action@v4.13.0 - with: - clang-format-version: '14' - check-path: . + - name: Checkout source + uses: actions/checkout@v4 + + - name: Install dependencies + run: sudo apt-get install clang-format-${{ env.VERSION }} + + - name: clang-format check + run: | + cmake_common_version="v3.4" + script_name="project-clang-format.py" + script_path="${{ github.workspace }}/$script_name" + download_url="https://raw.githubusercontent.com/egor-tensin/cmake-common/$cmake_common_version/tools/$script_name" + curl -s -o "$script_path" "$download_url" + python3 "$script_path" --clang-format "clang-format-${{ env.VERSION }}" --style "file" check-spdx-tags: name: check spdx tags