summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
blob: ac748a7977c48b313c269d9ee1f2548059ad6835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build

on: [push]

jobs:
  build:
    strategy:
      matrix:
        platform: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.platform }}
    steps:
    - uses: actions/checkout@v1
    - name: install dependencies
      run: |
        if [ "$RUNNER_OS" == "Linux" ]; then
          sudo apt-get install cython
        elif [ "$RUNNER_OS" == "macOS" ]; then
          if test -x "`which port`"; then
            sudo port install libtool autoconf automake cython
          else
            brew install libtool autoconf automake cython
          fi
        else
          echo "$RUNNER_OS not supported"
          exit 1
        fi
      shell: bash
    - name: autogen
      run: ./autogen.sh
    - name: make
      run: make
    - name: make check
      run: make check
    - name: make distcheck
      run: make distcheck