Commit af490e4d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Switch from Travis CI to GitHub actions

parent b7f13619
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
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

.travis.yml

deleted100644 → 0
+0 −30
Original line number Diff line number Diff line
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