Skip to content

Commit a78d64e

Browse files
CI: Updates GitHub CI Clang Formatter to use Ubuntu 22.04 (#1226)
Ubuntu 20.04 is being deprecated and removed from GitHub CI * Updates GitHub CI Clang Formatter to use Ubuntu 22.04 * Updated clang-format version format_push.yml --------- Signed-off-by: Michael Jackson <[email protected]> Signed-off-by: Jared Duffey <[email protected]> Co-authored-by: Jared Duffey <[email protected]>
1 parent 0973b2e commit a78d64e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/format_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
clang_format_pr:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -20,11 +20,11 @@ jobs:
2020
id: check_format
2121
continue-on-error: true
2222
run: |
23-
python3 scripts/clang_format.py --format-version 10 --commits HEAD^ HEAD
23+
python3 scripts/clang_format.py --format-version 13 --commits HEAD^ HEAD
2424
- name: Apply Formatting
2525
if: steps.check_format.outcome != 'success'
2626
run: |
27-
python3 scripts/clang_format.py --format-version 10 --modify --commits HEAD^ HEAD
27+
python3 scripts/clang_format.py --format-version 13 --modify --commits HEAD^ HEAD
2828
- name: Add Suggestions
2929
if: steps.check_format.outcome != 'success'
3030
uses: reviewdog/action-suggester@v1

.github/workflows/format_push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88

99
jobs:
1010
clang_format:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212

1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Add Problem Matcher
1616
uses: ammaraskar/gcc-problem-matcher@a141586609e2a558729b99a8c574c048f7f56204
1717
- name: Check Formatting
1818
run: |
19-
python3 scripts/clang_format.py --format-version 10
19+
python3 scripts/clang_format.py --format-version 13

0 commit comments

Comments
 (0)