mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Replace Travis CI with Github Actions (#1047)
* Replace Travis CI with Github Actions Signed-off-by: Kevin Petit <kevin.petit@arm.com> * Fix OpenGL coverage * Tidy up - Fix shell warning - Remove ENABLE_OPENCL30_PROVISIONAL ICD CMake option
This commit is contained in:
40
.github/workflows/presubmit.yml
vendored
Normal file
40
.github/workflows/presubmit.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Presubmit
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build ${{ matrix.os }} ${{ matrix.name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
JOB_CHECK_FORMAT: ${{ matrix.format }}
|
||||
JOB_ARCHITECTURE: ${{ matrix.arch }}
|
||||
JOB_ENABLE_GL: ${{ matrix.gl }}
|
||||
strategy:
|
||||
matrix:
|
||||
mainmatrix: [true]
|
||||
os: [ubuntu-20.04, macos-11.0]
|
||||
include:
|
||||
- os: ubuntu-20.04
|
||||
mainmatrix: true
|
||||
gl: 1
|
||||
- os: ubuntu-20.04
|
||||
mainmatrix: false
|
||||
name: Format
|
||||
format: 1
|
||||
- os: ubuntu-20.04
|
||||
mainmatrix: false
|
||||
name: Arm
|
||||
arch: arm
|
||||
- os: ubuntu-20.04
|
||||
mainmatrix: false
|
||||
name: AArch64
|
||||
arch: aarch64
|
||||
steps:
|
||||
- name: Setup
|
||||
run: if [[ "${{matrix.format}}" == "1" ]]; then sudo apt install -y clang-format; fi
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Build
|
||||
run: ./presubmit.sh
|
||||
|
||||
Reference in New Issue
Block a user