summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-04-06 11:12:40 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-04-06 11:12:57 +0200
commitaf490e4dcea79ec4d8e42234462ec9cce6c017a9 (patch)
tree0d0662469a20f2fd38fa6236d8361fbb75c508b7
parentb7f13619d3a6a4fbd62dfa6da150e8f0bf571b7c (diff)
Switch from Travis CI to GitHub actions
-rw-r--r--.github/workflows/c.yml40
-rw-r--r--.travis.yml30
2 files changed, 40 insertions, 30 deletions
diff --git a/.github/workflows/c.yml b/.github/workflows/c.yml
new file mode 100644
index 0000000..2be7fd6
--- /dev/null
+++ b/.github/workflows/c.yml
@@ -0,0 +1,40 @@
+name: linux
+
+on:
+ push:
+ branches:
+ - '*'
+ pull_request:
+ branches:
+ - '*'
+
+jobs:
+ c:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ curl: [0, 1]
+ exif: [0, 1]
+ inotify: [0, 1]
+ verscmp: [0, 1]
+ xinerama: [0, 1]
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install Dependencies
+ run: sudo apt install build-essential libx11-dev libxt-dev libimlib2-dev libtest-command-perl libtest-simple-perl
+ - name: Install libcurl
+ if: matrix.curl
+ run: sudo apt install libcurl4-openssl-dev
+ - name: Install libexif
+ if: matrix.exif
+ run: sudo apt install libexif-dev
+ - name: Install Xinerama
+ if: matrix.xinerama
+ run: sudo apt install libxinerama-dev
+ - name: Build
+ run: make curl=${{ matrix.curl }} exif=${{ matrix.exif }} inotify=${{ matrix.inotify }} verscmp=${{ matrix.verscmp }} xinerama=${{ matrix.xinerama }}
+ - name: run Tests
+ run: make test
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index a12b97d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-language: c
-addons:
- apt:
- packages:
- - libcurl4-openssl-dev
- - libx11-dev
- - libxt-dev
- - libimlib2-dev
- - libxinerama-dev
- - libjpeg-progs
- - libtest-command-perl
- - libtest-simple-perl
- - libexif-dev
- - libexif12
-script:
- - make
- - make test
-compiler:
- - clang
- - gcc
-env:
- - default=1
- - app=1
- - curl=0
- - exif=1
- - help=1
- - stat64=1
- - verscmp=0
- - xinerama=0
- - inotify=1