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 6
6
jobs :
7
7
# This job takes approximately 1 minute
8
8
check-clang-format :
9
- runs-on : ubuntu-20 .04
9
+ runs-on : ubuntu-24 .04
10
10
steps :
11
11
- uses : actions/checkout@v4
12
12
with :
19
19
DEBIAN_FRONTEND : noninteractive
20
20
run : |
21
21
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
24
24
env :
25
25
BASE_BRANCH : ${{ github.base_ref }}
26
26
MERGE_BRANCH : ${{ github.ref }}
29
29
echo "Pull request's base branch is: ${BASE_BRANCH}"
30
30
echo "Pull request's merge branch is: ${MERGE_BRANCH}"
31
31
echo "Pull request's source branch is: ${GITHUB_HEAD_REF}"
32
- clang-format-11 --version
32
+ clang-format-15 --version
33
33
34
34
# The checkout action leaves us in detatched head state. The following line
35
35
# names the checked out commit, for simpler reference later.
45
45
46
46
# Do the checking. "eval" is used so that quotes (as inserted into $EXCLUDES
47
47
# 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
49
49
git diff > formatted.diff
50
50
if [[ -s formatted.diff ]] ; then
51
51
echo 'Formatting error! The following diff shows the required changes'
You can’t perform that action at this time.
0 commit comments