mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Bump clang-format version to 14 (#1983)
Default version coming with Ubuntu 22.04 that the CI now uses.
This commit is contained in:
2
.github/workflows/presubmit.yml
vendored
2
.github/workflows/presubmit.yml
vendored
@@ -63,7 +63,7 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: sudo apt install -y clang-format clang-format-11
|
run: sudo apt install -y clang-format clang-format-14
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Arg used to specify non-'origin/main' comparison branch
|
# Arg used to specify non-'origin/main' comparison branch
|
||||||
ORIGIN_BRANCH=${1:-"origin/main"}
|
ORIGIN_BRANCH=${1:-"origin/main"}
|
||||||
CLANG_BINARY=${2:-"`which clang-format-11`"}
|
CLANG_BINARY=${2:-"`which clang-format-14`"}
|
||||||
|
|
||||||
# Run git-clang-format to check for violations
|
# 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)
|
CLANG_FORMAT_OUTPUT=$(git-clang-format --diff $ORIGIN_BRANCH --extensions c,cpp,h,hpp --binary $CLANG_BINARY)
|
||||||
|
|||||||
Reference in New Issue
Block a user