Skip to content

Commit dbed35e

Browse files
authored
Merge pull request #583 from diffblue/clang-format-15
CI: bump clang-format to version 15
2 parents f48e9b2 + 97ca5c6 commit dbed35e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/syntax-checks.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
# This job takes approximately 1 minute
88
check-clang-format:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- uses: actions/checkout@v4
1212
with:
@@ -19,8 +19,8 @@ jobs:
1919
DEBIAN_FRONTEND: noninteractive
2020
run: |
2121
sudo apt-get update
22-
sudo apt-get install --no-install-recommends -yq clang-format-11
23-
- name: Check updated lines of code match clang-format-11 style
22+
sudo apt-get install --no-install-recommends -yq clang-format-15
23+
- name: Check updated lines of code match clang-format-15 style
2424
env:
2525
BASE_BRANCH: ${{ github.base_ref }}
2626
MERGE_BRANCH: ${{ github.ref }}
@@ -29,7 +29,7 @@ jobs:
2929
echo "Pull request's base branch is: ${BASE_BRANCH}"
3030
echo "Pull request's merge branch is: ${MERGE_BRANCH}"
3131
echo "Pull request's source branch is: ${GITHUB_HEAD_REF}"
32-
clang-format-11 --version
32+
clang-format-15 --version
3333
3434
# The checkout action leaves us in detatched head state. The following line
3535
# names the checked out commit, for simpler reference later.
@@ -45,7 +45,7 @@ jobs:
4545
4646
# Do the checking. "eval" is used so that quotes (as inserted into $EXCLUDES
4747
# above) are not interpreted as parts of file names.
48-
git-clang-format-11 --binary clang-format-11 $MERGE_BASE
48+
git-clang-format-15 --binary clang-format-15 $MERGE_BASE
4949
git diff > formatted.diff
5050
if [[ -s formatted.diff ]] ; then
5151
echo 'Formatting error! The following diff shows the required changes'

0 commit comments

Comments
 (0)