mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
macOS jobs frequently fail. Since macos-11.0 support is considered experimental, move to macos-10, using macos-latest so we automatically move to 11 when stable. See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners Signed-off-by: Kevin Petit <kevin.petit@arm.com>
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Presubmit
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build ${{ matrix.os }} ${{ matrix.name }}
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
JOB_ARCHITECTURE: ${{ matrix.arch }}
|
|
JOB_ENABLE_GL: ${{ matrix.gl }}
|
|
strategy:
|
|
matrix:
|
|
mainmatrix: [true]
|
|
os: [ubuntu-20.04, macos-latest]
|
|
include:
|
|
- os: ubuntu-20.04
|
|
mainmatrix: true
|
|
gl: 1
|
|
- os: ubuntu-20.04
|
|
mainmatrix: false
|
|
name: Arm
|
|
arch: arm
|
|
- os: ubuntu-20.04
|
|
mainmatrix: false
|
|
name: AArch64
|
|
arch: aarch64
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 clang-format-9
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Check code format
|
|
run: ./check-format.sh
|