aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2020-12-23 19:21:29 +0000
committerGitHub <noreply@github.com>2020-12-23 19:21:29 +0000
commit03b9b4692cfdd14f96d9e811bb5c89f3a0696bf5 (patch)
treef7106033ea5ab446fda9131be8c029e3474b8b34
parentef4dbfa7403b0086581d8317aae4c959ff5b825f (diff)
parent4c686ff5e34552db0a121adf3054b33b6f708aae (diff)
downloadlibepoxy-03b9b4692cfdd14f96d9e811bb5c89f3a0696bf5.tar.gz
Merge pull request #235 from anholt/github-ci
Move CI to GitHub
-rw-r--r--.appveyor.yml67
-rwxr-xr-x.github/scripts/epoxy-ci-linux.sh (renamed from .travis/epoxy-ci-linux.sh)0
-rwxr-xr-x.github/scripts/epoxy-ci-osx.sh (renamed from .travis/epoxy-ci-osx.sh)0
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/msvc-env.yml23
-rw-r--r--.github/workflows/msys2.yml27
-rw-r--r--.travis.yml55
-rw-r--r--.travis/Dockerfile29
-rwxr-xr-x.travis/run-docker.sh12
9 files changed, 52 insertions, 165 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
deleted file mode 100644
index 8e0cae2..0000000
--- a/.appveyor.yml
+++ /dev/null
@@ -1,67 +0,0 @@
-version: 1.0.{build}
-
-image: Visual Studio 2015
-
-configuration: Release
-
-# Configure both 32-bit and 64-bit builds
-environment:
- matrix:
- - platform: x86
- config: Win32
- pout: x86
- - platform: x64
- config: x64
- pout: x64
-
-shallow_clone: true
-
-# Download Meson and Ninja, create install directory
-before_build:
-- mkdir build
-- mkdir libepoxy-shared-%pout%
-- cd build
-- curl -LsSO https://github.com/mesonbuild/meson/releases/download/0.47.1/meson-0.47.1.tar.gz
-- 7z x meson-0.47.1.tar.gz
-- move dist\meson-0.47.1.tar .
-- 7z x meson-0.47.1.tar
-- rmdir dist
-- del meson-0.47.1.tar meson-0.47.1.tar.gz
-- curl -LsSO https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip
-- 7z x ninja-win.zip
-- del ninja-win.zip
-- cd ..
-
-# Build and install
-build_script:
-- cd build
-- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
-- C:\Python36\python.exe meson-0.47.1\meson.py .. . --backend=ninja --prefix=%APPVEYOR_BUILD_FOLDER%\libepoxy-shared-%pout%
-- ninja
-- ninja install
-- cd ..
-
-# Copy license into install directory and create .zip file
-after_build:
-- copy COPYING libepoxy-shared-%pout%
-- dir libepoxy-shared-%pout% /s /b
-- 7z a -tzip libepoxy-shared-%pout%.zip libepoxy-shared-%pout%
-
-artifacts:
- - path: libepoxy-shared-%pout%.zip
- name: libepoxy-shared-%pout%
-
-test: off
-
-# Upload .zip file to GitHub release
-deploy:
- release: $(APPVEYOR_REPO_TAG_NAME)
- description: "Epoxy $(APPVEYOR_REPO_TAG_NAME)"
- provider: GitHub
- auth_token:
- secure: X7Ro8Y2RWYo/M1AAn93f9X0dEQFvu7gPb6li2eKRtzPYLGj/JKm7MNWRw2cCcjm6
- artifact: libepoxy-shared-$(pout)
- draft: false
- prerelease: false
- on:
- appveyor_repo_tag: true # deploy on tag push only
diff --git a/.travis/epoxy-ci-linux.sh b/.github/scripts/epoxy-ci-linux.sh
index e95584f..e95584f 100755
--- a/.travis/epoxy-ci-linux.sh
+++ b/.github/scripts/epoxy-ci-linux.sh
diff --git a/.travis/epoxy-ci-osx.sh b/.github/scripts/epoxy-ci-osx.sh
index 1a062a1..1a062a1 100755
--- a/.travis/epoxy-ci-osx.sh
+++ b/.github/scripts/epoxy-ci-osx.sh
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index edd6c5b..4086757 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -43,6 +43,6 @@ jobs:
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 }}"
+ 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 }} .travis/epoxy-ci-linux.sh ${{ matrix.build-opts }}"
+ run: /bin/sh -c "CC=${{ matrix.compiler }} .github/scripts/epoxy-ci-linux.sh ${{ matrix.build-opts }}"
diff --git a/.github/workflows/msvc-env.yml b/.github/workflows/msvc-env.yml
new file mode 100644
index 0000000..a4e69c8
--- /dev/null
+++ b/.github/workflows/msvc-env.yml
@@ -0,0 +1,23 @@
+name: MSVC Build
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: windows-latest
+ env:
+ PYTHONIOENCODING: "utf-8"
+ steps:
+ - uses: actions/checkout@master
+ - uses: actions/setup-python@v1
+ - uses: seanmiddleditch/gha-setup-vsdevenv@master
+ - uses: BSFishy/meson-build@v1.0.1
+ with:
+ action: test
+ directory: _build
+ options: --verbose --fatal-meson-warnings
+ meson-version: 0.54.3
diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml
new file mode 100644
index 0000000..0f90a2b
--- /dev/null
+++ b/.github/workflows/msys2.yml
@@ -0,0 +1,27 @@
+name: MSYS2 Build
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: msys2 {0}
+ env:
+ PYTHONIOENCODING: "utf-8"
+ steps:
+ - uses: actions/checkout@master
+ - uses: msys2/setup-msys2@v2
+ with:
+ msystem: MINGW64
+ update: true
+ install: base-devel git mingw-w64-x86_64-meson mingw-w64-x86_64-ninja mingw-w64-x86_64-pkg-config mingw-w64-x86_64-python3 mingw-w64-x86_64-python3-pip mingw-w64-x86_64-toolchain
+ - name: Build
+ run: |
+ meson setup _build
+ meson compile -C _build
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 0fe6610..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,55 +0,0 @@
-sudo: false
-
-branches:
- except:
- - debian
- - khronos-registry
-
-os:
- - linux
- - osx
-
-compiler:
- - gcc
- - clang
-
-language:
- - c
-
-services:
- - docker
-
-matrix:
- exclude:
- - os: osx
- compiler: gcc
-
-before_install:
- - |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
- brew update
- brew unlink python@2
- brew install python@3 meson
- # Use a Ninja with QuLogic's patch: https://github.com/ninja-build/ninja/issues/1219
- mkdir -p $HOME/tools; curl -L http://nirbheek.in/files/binaries/ninja/macos/ninja -o $HOME/tools/ninja; chmod +x $HOME/tools/ninja
- fi
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull ebassi/epoxyci ; fi
-
-before_script:
- - |
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- echo FROM ebassi/epoxyci > Dockerfile
- echo ADD . /root >> Dockerfile
- echo WORKDIR /root >> Dockerfile
- docker build -t withgit .
- fi
-
-env:
- - BUILD_OPTS=""
- - BUILD_OPTS="-Dglx=no"
- - BUILD_OPTS="-Degl=no"
- - BUILD_OPTS="-Dx11=false"
-
-script:
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "CC=$CC .travis/epoxy-ci-linux.sh $BUILD_OPTS" ; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then /bin/sh -c "CC=$CC .travis/epoxy-ci-osx.sh $BUILD_OPTS" ; fi
diff --git a/.travis/Dockerfile b/.travis/Dockerfile
deleted file mode 100644
index bd9b40a..0000000
--- a/.travis/Dockerfile
+++ /dev/null
@@ -1,29 +0,0 @@
-FROM debian:stretch-slim
-MAINTAINER Emmanuele Bassi <ebassi@gmail.com>
-
-RUN apt-get update -qq && \
- apt-get install --no-install-recommends -qq -y \
- ca-certificates \
- clang \
- gcc \
- libgl1-mesa-dev \
- libegl1-mesa-dev \
- libgles1-mesa-dev \
- libgles2-mesa-dev \
- libgl1-mesa-dri \
- locales \
- ninja-build \
- pkg-config \
- python3 \
- python3-pip \
- python3-setuptools \
- python3-wheel \
- xvfb && \
- rm -rf /usr/share/doc/* /usr/share/man/*
-
-RUN locale-gen C.UTF-8 && /usr/sbin/update-locale LANG=C.UTF-8
-ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
-
-RUN pip3 install meson
-
-WORKDIR /root
diff --git a/.travis/run-docker.sh b/.travis/run-docker.sh
deleted file mode 100755
index 4b3ecc7..0000000
--- a/.travis/run-docker.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-set -xe
-
-srcdir="$(pwd)/.."
-
-sudo docker build \
- --tag "epoxyci" \
- --file "Dockerfile" .
-sudo docker run --rm \
- --volume "${srcdir}:/root/epoxy" \
- --tty --interactive "epoxyci" bash