ci: use ubuntu-22.04 instead of 20.04 (#1795)

* ci: use ubuntu-22.04 instead of 20.04

Signed-off-by: Kevin Petit <kevin.petit@arm.com>

* bump clang-format version

Oldest supported by 22.04

* update check-format script

---------

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
Kévin Petit
2023-08-22 18:13:22 +01:00
committed by GitHub
parent 0702f2ecee
commit ddbb0de4b9
2 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
# Arg used to specify non-'origin/main' comparison branch
ORIGIN_BRANCH=${1:-"origin/main"}
CLANG_BINARY=${2:-"`which clang-format-9`"}
CLANG_BINARY=${2:-"`which clang-format-11`"}
# Run git-clang-format to check for violations
CLANG_FORMAT_OUTPUT=$(git-clang-format --diff $ORIGIN_BRANCH --extensions c,cpp,h,hpp --binary $CLANG_BINARY)