From 642330e86fa6c763d92e4118749df2ddb61cd5cc Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 23 Dec 2020 19:42:27 +0000 Subject: ci: Split Linux and macOS pipelines Don't use a single pipeline for everything. --- .github/workflows/ci.yml | 48 --------------------------------------------- .github/workflows/linux.yml | 38 +++++++++++++++++++++++++++++++++++ .github/workflows/macos.yml | 26 ++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/linux.yml create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 4086757..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,48 +0,0 @@ -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 }} .github/scripts/epoxy-ci-osx.sh ${{ matrix.build-opts }}" - - if: runner.os == 'Linux' - run: /bin/sh -c "CC=${{ matrix.compiler }} .github/scripts/epoxy-ci-linux.sh ${{ matrix.build-opts }}" diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..3d71e7f --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,38 @@ +name: Ubuntu +on: + push: + branches-ignore: + - debian + - khronos-registry +jobs: + build: + strategy: + matrix: + os: + - ubuntu-18.04 + compiler: + - gcc + - clang + build-opts: + - '' + - '-Dglx=no' + - '-Degl=no' + - '-Dx11=false' + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - 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 + /bin/sh -c "CC=${{ matrix.compiler }} .github/scripts/epoxy-ci-linux.sh ${{ matrix.build-opts }}" diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..c725ef1 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,26 @@ +name: macOS +on: + push: + branches-ignore: + - debian + - khronos-registry +jobs: + build: + strategy: + matrix: + build-opts: + - '' + - '-Dglx=no' + - '-Degl=no' + - '-Dx11=false' + runs-on: macos-10.15 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.x + - run: | + brew install ninja + python -m pip install --upgrade pip + pip3 install meson + /bin/sh -c "CC=clang .github/scripts/epoxy-ci-osx.sh ${{ matrix.build-opts }}" -- cgit v1.2.1 From c37b42432be45f2484be975890e446029b29b5b9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 23 Dec 2020 19:47:42 +0000 Subject: Update the CI status badges Use the badges from GitHub Actions. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 56b6a65..b64d355 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -[![Build Status](https://travis-ci.org/anholt/libepoxy.svg?branch=master)](https://travis-ci.org/anholt/libepoxy) -[![Build status](https://ci.appveyor.com/api/projects/status/xv6y5jurt5v5ngjx/branch/master?svg=true)](https://ci.appveyor.com/project/ebassi/libepoxy/branch/master) +![Ubuntu](https://github.com/anholt/libepoxy/workflows/Ubuntu/badge.svg) +![macOS](https://github.com/anholt/libepoxy/workflows/macOS/badge.svg) +![MSVC Build](https://github.com/anholt/libepoxy/workflows/MSVC%20Build/badge.svg) +![MSYS2 Build](https://github.com/anholt/libepoxy/workflows/MSYS2%20Build/badge.svg) Epoxy is a library for handling OpenGL function pointer management for you. -- cgit v1.2.1 From 1878042c03643f0107f977bdd400de1448a45a02 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 23 Dec 2020 19:48:37 +0000 Subject: Add a badge for the project license --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b64d355..9d83ed9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ![macOS](https://github.com/anholt/libepoxy/workflows/macOS/badge.svg) ![MSVC Build](https://github.com/anholt/libepoxy/workflows/MSVC%20Build/badge.svg) ![MSYS2 Build](https://github.com/anholt/libepoxy/workflows/MSYS2%20Build/badge.svg) +[![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) Epoxy is a library for handling OpenGL function pointer management for you. -- cgit v1.2.1