mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 00:39:03 +00:00
ci: move code format check out of the main job/script (#1154)
A bit cleaner than the written-in-a-haste-to-get-ci-going-again current approach. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
21
.github/workflows/presubmit.yml
vendored
21
.github/workflows/presubmit.yml
vendored
@@ -6,7 +6,6 @@ jobs:
|
|||||||
name: Build ${{ matrix.os }} ${{ matrix.name }}
|
name: Build ${{ matrix.os }} ${{ matrix.name }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
JOB_CHECK_FORMAT: ${{ matrix.format }}
|
|
||||||
JOB_ARCHITECTURE: ${{ matrix.arch }}
|
JOB_ARCHITECTURE: ${{ matrix.arch }}
|
||||||
JOB_ENABLE_GL: ${{ matrix.gl }}
|
JOB_ENABLE_GL: ${{ matrix.gl }}
|
||||||
strategy:
|
strategy:
|
||||||
@@ -17,10 +16,6 @@ jobs:
|
|||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
mainmatrix: true
|
mainmatrix: true
|
||||||
gl: 1
|
gl: 1
|
||||||
- os: ubuntu-20.04
|
|
||||||
mainmatrix: false
|
|
||||||
name: Format
|
|
||||||
format: 1
|
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
mainmatrix: false
|
mainmatrix: false
|
||||||
name: Arm
|
name: Arm
|
||||||
@@ -30,11 +25,17 @@ jobs:
|
|||||||
name: AArch64
|
name: AArch64
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- uses: actions/checkout@v2
|
||||||
run: if [[ "${{matrix.format}}" == "1" ]]; then sudo apt install -y clang-format; fi
|
- name: Build
|
||||||
|
run: ./presubmit.sh
|
||||||
|
formatcheck:
|
||||||
|
name: Check code format
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: sudo apt install -y clang-format
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Build
|
- name: Check code format
|
||||||
run: ./presubmit.sh
|
run: ./check-format.sh
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,6 @@ set -e
|
|||||||
|
|
||||||
export TOP=$(pwd)
|
export TOP=$(pwd)
|
||||||
|
|
||||||
if [[ "${JOB_CHECK_FORMAT}" == "1" ]]; then
|
|
||||||
./check-format.sh
|
|
||||||
exit $?
|
|
||||||
fi
|
|
||||||
|
|
||||||
TOOLCHAIN_URL_arm="https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz"
|
TOOLCHAIN_URL_arm="https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz"
|
||||||
TOOLCHAIN_URL_aarch64="https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz"
|
TOOLCHAIN_URL_aarch64="https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user