From af490e4dcea79ec4d8e42234462ec9cce6c017a9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 6 Apr 2020 11:12:40 +0200 Subject: Switch from Travis CI to GitHub actions --- .github/workflows/c.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/c.yml (limited to '.github') 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 -- cgit v1.2.3