File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 66jobs :
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 :
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 }}
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.
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'
You can’t perform that action at this time.
0 commit comments