From d72b08bae5e4396ae63760aaf2d759d53737d0e1 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 13 Aug 2026 11:46:17 -0400 Subject: [PATCH] STY: Update clang-format version to 19 Signed-off-by: Michael Jackson --- .github/workflows/format_pr.yml | 11 ++++++++--- .github/workflows/format_push.yml | 9 +++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/format_pr.yml b/.github/workflows/format_pr.yml index 87966cb..b59992a 100644 --- a/.github/workflows/format_pr.yml +++ b/.github/workflows/format_pr.yml @@ -8,7 +8,7 @@ on: jobs: clang_format_pr: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 @@ -16,15 +16,20 @@ jobs: fetch-depth: 2 - name: Add Problem Matcher uses: ammaraskar/gcc-problem-matcher@a141586609e2a558729b99a8c574c048f7f56204 + - name: Install clang-format-19 + run: | + sudo apt-get update + sudo apt-get install clang-format-19 + clang-format-19 --version - name: Check Formatting id: check_format continue-on-error: true run: | - python3 scripts/clang_format.py --format-version 13 --commits HEAD^ HEAD + python3 scripts/clang_format.py --format-version 19 --commits HEAD^ HEAD - name: Apply Formatting if: steps.check_format.outcome != 'success' run: | - python3 scripts/clang_format.py --format-version 13 --modify --commits HEAD^ HEAD + python3 scripts/clang_format.py --format-version 19 --modify --commits HEAD^ HEAD - name: Add Suggestions if: steps.check_format.outcome != 'success' uses: reviewdog/action-suggester@v1 diff --git a/.github/workflows/format_push.yml b/.github/workflows/format_push.yml index a4a6497..53502dc 100644 --- a/.github/workflows/format_push.yml +++ b/.github/workflows/format_push.yml @@ -8,12 +8,17 @@ on: jobs: clang_format: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 - name: Add Problem Matcher uses: ammaraskar/gcc-problem-matcher@a141586609e2a558729b99a8c574c048f7f56204 + - name: Install clang-format-19 + run: | + sudo apt-get update + sudo apt-get install clang-format-19 + clang-format-19 --version - name: Check Formatting run: | - python3 scripts/clang_format.py --format-version 13 + python3 scripts/clang_format.py --format-version 19