summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Aebi <eyelash@users.noreply.github.com>2020-07-21 22:07:01 +0200
committerElias Aebi <eyelash@users.noreply.github.com>2020-07-21 23:42:03 +0200
commit1a2784a9c5f9ac173917555afddc9a9e31a84883 (patch)
treece556671296226ff26277449916d3ef75acf2c5b
parenta1918874061fcea5da1739cffad55e4c3ae283c6 (diff)
downloadlibepoxy-1a2784a9c5f9ac173917555afddc9a9e31a84883.tar.gz
GitHub CI
-rw-r--r--.github/workflows/ci.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..edd6c5b
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,48 @@
+name: Build
+on:
+ push:
+ branches-ignore:
+ - debian
+ - khronos-registry
+jobs:
+ build:
+ strategy:
+ matrix:
+ os:
+ - ubuntu-18.04
+ - macos-10.15
+ compiler:
+ - gcc
+ - clang
+ build-opts:
+ - ''
+ - '-Dglx=no'
+ - '-Degl=no'
+ - '-Dx11=false'
+ exclude:
+ - os: macos-10.15
+ compiler: gcc
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v2
+ - if: runner.os == 'macOS'
+ run: brew install ninja
+ - if: runner.os == 'Linux'
+ run: >
+ sudo apt-get update &&
+ sudo apt-get install --no-install-recommends
+ libgl1-mesa-dev
+ libegl1-mesa-dev
+ libgles2-mesa-dev
+ libgl1-mesa-dri
+ ninja-build
+ - uses: actions/setup-python@v2
+ with:
+ python-version: 3.x
+ - run: |
+ python -m pip install --upgrade pip
+ pip3 install meson
+ - if: runner.os == 'macOS'
+ run: /bin/sh -c "CC=${{ matrix.compiler }} .travis/epoxy-ci-osx.sh ${{ matrix.build-opts }}"
+ - if: runner.os == 'Linux'
+ run: /bin/sh -c "CC=${{ matrix.compiler }} .travis/epoxy-ci-linux.sh ${{ matrix.build-opts }}"