File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ concurrency:
1515jobs :
1616 Docker :
1717 name : " Check whether docker setup, build, test work correctly."
18- runs-on : ubuntu-latest
18+ runs-on : ubuntu-24.04
1919 steps :
2020 - uses : actions/checkout@v3
2121 - name : Docker Setup
2727 name : Doxygenize
2828 # Only run for push to main
2929 if : github.ref == 'refs/heads/main'
30- runs-on : ubuntu-latest
30+ runs-on : ubuntu-24.04
3131 permissions :
3232 contents : write # Needed to push to gh-pages
3333 steps :
@@ -43,26 +43,22 @@ jobs:
4343 ghpagesbranch : gh-pages
4444 # GitHub Pages directory path
4545 ghpagesdir : ./docs
46-
46+
4747 Formatting :
4848 name : Clang Format
49- runs-on : ubuntu-latest
50- strategy :
51- matrix :
52- path :
53- - ' src'
54- - ' examples'
49+ runs-on : ubuntu-24.04
5550 steps :
56- - uses : actions/checkout@v3
57- - name : Run clang-format style check for C/C++/Protobuf programs.
58- uses : jidicula/clang-format-action@v4.11.0
51+ - uses : actions/checkout@v4
5952 with :
60- clang-format-version : ' 20'
61- check-path : ${{ matrix.path }}
53+ fetch-depth : 0
54+ - name : clang-format style check
55+ run : |
56+ git clang-format-18 --diff -q origin/main | tee format_diff.txt
57+ if [ -s format_diff.txt ]; then exit 1; fi
6258
6359 Linting :
6460 name : Shellcheck
65- runs-on : ubuntu-latest
61+ runs-on : ubuntu-24.04
6662 steps :
6763 - uses : actions/checkout@v3
6864 - name : Run ShellCheck
You can’t perform that action at this time.
0 commit comments