summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2020-12-05 22:39:16 +0100
committerOneric <oneric@oneric.stub>2021-02-14 21:43:36 +0100
commit4ff69570917bf810e958a3e25eef86c1889baa18 (patch)
tree47866d7de7b69a9b434ed9a43f5f292d16a564ee
parent706f23d84180d36538c467e20b461677781cab16 (diff)
downloadlibass-4ff69570917bf810e958a3e25eef86c1889baa18.tar.bz2
libass-4ff69570917bf810e958a3e25eef86c1889baa18.tar.xz
ci: add GitHubActions as CI platform
travis-ci.org will close on 31.12.2020, and travis-ci.com's free plan does not include MacOS builds, therefore we need an alternative. Unfortunately, I couldn't find a way to get IRC notifications with GitHubActions and Coverity is also missing in GHA atm, so for now Travis still remains.
-rw-r--r--.github/workflows/ghci.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/ghci.yml b/.github/workflows/ghci.yml
new file mode 100644
index 0000000..138be5a
--- /dev/null
+++ b/.github/workflows/ghci.yml
@@ -0,0 +1,50 @@
+name: GitHub CI tests
+
+on:
+ push:
+ branches: [master, ci, coverity_scan]
+ pull_request:
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-18.04, macos-10.15]
+ cc: [gcc, clang]
+ exclude:
+ - os: macos-10.15
+ cc: gcc
+ include:
+ # Enable distcheck for one build
+ - os: ubuntu-18.04
+ cc: gcc
+ do_distc: yes
+
+ steps:
+ - name: checkout code
+ uses: actions/checkout@v2
+
+ - name: install deps
+ run: |
+ if echo "${{ matrix.os }}" | grep -qE '^macos-' ; then
+ #brew update
+ # fontconfig, freetype, autoconf and libtool are preinstalled
+ # and `brew install` fails if a non-uptodate version is already installed
+ #brew upgrade fontconfig freetype autoconf libtool
+ brew install automake fribidi harfbuzz nasm
+ else
+ sudo apt-get update #&& sudo apt-get upgrade
+ sudo apt-get install -y \
+ libfontconfig1-dev libfreetype6-dev libfribidi-dev \
+ libharfbuzz-dev nasm ${{ matrix.cc }}
+ fi
+
+ - name: configure
+ run: ./autogen.sh && CC="${{ matrix.cc }}" ./configure
+
+ - name: compile
+ run: test "x${{ matrix.do_distc }}" = "xyes" || make -j 2
+
+ - name: distcheck
+ run: if [ "x${{ matrix.do_distc }}" = "xyes" ] ; then make -j 2 distcheck; fi