Skip to content

Commit

Permalink
ci: use ubuntu-22.04 instead of 20.04 (#1795)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kpet authored Aug 22, 2023
1 parent 0702f2e commit ddbb0de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
fail-fast: false
matrix:
mainmatrix: [true]
os: [ubuntu-20.04, macos-latest, windows-latest]
os: [ubuntu-22.04, macos-latest, windows-latest]
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
mainmatrix: true
gl: 1
extra: " gl"
- os: ubuntu-20.04
- os: ubuntu-22.04
mainmatrix: false
arch: arm
- os: ubuntu-20.04
- os: ubuntu-22.04
mainmatrix: false
arch: aarch64
debug: 1
Expand Down Expand Up @@ -55,10 +55,10 @@ jobs:
run: ./presubmit.sh
formatcheck:
name: Check code format
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install packages
run: sudo apt install -y clang-format clang-format-9
run: sudo apt install -y clang-format clang-format-11
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion check-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ddbb0de

Please sign in to comment.