[ci] Update checks runner to Ubuntu 22

This commit is contained in:
Lars Toenning
2023-04-16 13:17:04 +02:00
parent 06e0728a74
commit 9437e9680e

View File

@@ -50,7 +50,7 @@ jobs:
warnIfNotFound: false warnIfNotFound: false
checks: checks:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
needs: preBuild needs: preBuild
outputs: outputs:
warnings: ${{ steps.cppcheck.outputs.warnings }} warnings: ${{ steps.cppcheck.outputs.warnings }}
@@ -68,7 +68,7 @@ jobs:
run: | run: |
sudo apt-get -y install cppcheck sudo apt-get -y install cppcheck
sudo cpan Path::Class sudo cpan Path::Class
cppcheck --template=gcc --inline-suppr --std=c++14 --enable=style,unusedFunction -i externals \ cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction -i externals \
--suppressions-list=cppcheck.supp --library=qt.cfg --library=posix.cfg . 2> >(tee error.log >&2) --suppressions-list=cppcheck.supp --library=qt.cfg --library=posix.cfg . 2> >(tee error.log >&2)
perl scripts/warnings.pl error.log perl scripts/warnings.pl error.log