ref: 97bcbf5d84a076eebe0ad5c6d683334928ea6217
parent: 3fce9ed9a44eb55cd36b1520740b433a0f11685b
author: ISSOtm <[email protected]>
date: Thu Jan 30 13:29:47 EST 2020
Add GitHub Actions for regression testing
--- /dev/null
+++ b/.github/actions/install_deps.sh
@@ -1,0 +1,14 @@
+case `echo $1 | cut -d '-' -f 1` in
+ ubuntu)
+ sudo apt-get -qq update
+ sudo apt-get install -yq bison libpng-dev pkg-config
+ ;;
+ macos)
+ brew install libpng pkg-config md5sha1sum
+ ;;
+ *)
+ echo "WARNING: Cannot install deps for OS '$1'"
+ ;;
+esac
+
+yacc --version
--- /dev/null
+++ b/.github/workflows/testing.yml
@@ -1,0 +1,26 @@
+name: "Regression testing"
+on: push
+
+jobs:
+ testing:
+ strategy:
+ matrix:
+ os: [ubuntu-16.04, ubuntu-18.04, macos-10.15]
+ cc: [gcc, clang]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install deps
+ shell: bash
+ run: |
+ ./.github/actions/install_deps.sh ${{ matrix.os }}
+ - name: Build
+ run: |
+ make -j Q= CC=${{ matrix.cc }}
+ - name: Install
+ run: |
+ sudo make install -j Q=
+ - name: Test
+ shell: bash
+ run: |
+ test/run-tests.sh