Switch from Travis CI to Github Actions (#132)
authorJames Price <jrprice@google.com>
Fri, 4 Dec 2020 20:59:50 +0000 (15:59 -0500)
committerGitHub <noreply@github.com>
Fri, 4 Dec 2020 20:59:50 +0000 (15:59 -0500)
.github/workflows/presubmit.yml [new file with mode: 0644]
.travis.yml [deleted file]
README.md

diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml
new file mode 100644 (file)
index 0000000..72ffef5
--- /dev/null
@@ -0,0 +1,24 @@
+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
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index 0f09d80..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-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
index 9721bbc3376a8027eae8936218eb6f62b6dd9cf1..a51815845cbf6dbf4b3d202933e2c99d796d412d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ This repo contains the source code and tests for the Khronos official OpenCL ICD
 
 ## CI Build Status
 
-[![Windows Build Status](https://ci.appveyor.com/api/projects/status/47uhjgp5h4de2f63/branch/master?svg=true)](https://ci.appveyor.com/project/Khronoswebmaster/opencl-icd-loader/branch/master) [![Linux OSX Build Status](https://travis-ci.com/KhronosGroup/opencl-icd-loader.svg?branch=master)](https://travis-ci.com/KhronosGroup/opencl-icd-loader)
+[![Windows Build Status](https://ci.appveyor.com/api/projects/status/47uhjgp5h4de2f63/branch/master?svg=true)](https://ci.appveyor.com/project/Khronoswebmaster/opencl-icd-loader/branch/master) [![Linux OSX Build Status](https://github.com/KhronosGroup/OpenCL-ICD-Loader/workflows/Presubmit/badge.svg)](https://github.com/KhronosGroup/OpenCL-ICD-Loader/actions?query=workflow%3APresubmit)
 
 ## Introduction