Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/format_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,28 @@ on:

jobs:
clang_format_pr:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
with:
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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/format_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading