diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2020-07-22 00:48:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 00:48:22 +0100 |
commit | 34ecb908b044446226f4cf8829419664ae0ca544 (patch) | |
tree | 1cab41f924dae0df43adf4b514a908793c06de4c | |
parent | 23f40491834026df1dc5b048c45892c59f64762f (diff) | |
parent | 1a2784a9c5f9ac173917555afddc9a9e31a84883 (diff) | |
download | libepoxy-34ecb908b044446226f4cf8829419664ae0ca544.tar.gz |
Merge pull request #228 from eyelash/github-ci1.5.5
GitHub CI
-rw-r--r-- | .github/workflows/ci.yml | 48 |
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 }}" |