--- /dev/null
+name: Presubmit
+on: [push, pull_request]
+
+jobs:
+ build:
+ name: Build ${{ matrix.os }} ${{ matrix.name }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-20.04] # TODO: add macos-11.0
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Dependencies
+ uses: actions/checkout@v2
+ with:
+ repository: KhronosGroup/OpenCL-Headers
+ path: inc
+ - run: mkdir -p build
+ - run: cd build
+ - run: cmake ..
+ working-directory: build
+ - run: cmake --build .
+ working-directory: build
+++ /dev/null
-language: cpp
-
-compiler:
- - gcc
- #- clang
-
-os:
- - linux
- #- osx
-
-before_install:
- - git clone https://github.com/KhronosGroup/OpenCL-Headers inc/OpenCL-Headers
-
-script:
- - mkdir -p build
- - cd build
- - cmake -DOPENCL_ICD_LOADER_HEADERS_DIR=../inc/OpenCL-Headers ..
- - make
## CI Build Status
-[](https://ci.appveyor.com/project/Khronoswebmaster/opencl-icd-loader/branch/master) [](https://travis-ci.com/KhronosGroup/opencl-icd-loader)
+[](https://ci.appveyor.com/project/Khronoswebmaster/opencl-icd-loader/branch/master) [](https://github.com/KhronosGroup/OpenCL-ICD-Loader/actions?query=workflow%3APresubmit)
## Introduction