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:
Kévin Petit
2020-11-06 11:23:50 +00:00
committed by GitHub
parent 0e67969989
commit 46fead41f4
3 changed files with 43 additions and 25 deletions

40
.github/workflows/presubmit.yml vendored Normal file
View 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