diff options
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac748a7..db4cbf2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
| @@ -3,34 +3,48 @@ name: build | |||
| 3 | on: [push] | 3 | on: [push] |
| 4 | 4 | ||
| 5 | jobs: | 5 | jobs: |
| 6 | build: | 6 | build-linux-ubuntu: |
| 7 | strategy: | 7 | runs-on: ubuntu-latest |
| 8 | matrix: | ||
| 9 | platform: [ubuntu-latest, macos-latest] | ||
| 10 | runs-on: ${{ matrix.platform }} | ||
| 11 | steps: | 8 | steps: |
| 9 | - name: install dependencies | ||
| 10 | run: sudo apt-get install cython | ||
| 12 | - uses: actions/checkout@v1 | 11 | - uses: actions/checkout@v1 |
| 12 | - name: autogen | ||
| 13 | run: ./autogen.sh | ||
| 14 | - name: make | ||
| 15 | run: make | ||
| 16 | - name: make check | ||
| 17 | run: make check | ||
| 18 | - name: make distcheck | ||
| 19 | run: make distcheck | ||
| 20 | build-macOS: | ||
| 21 | runs-on: macOS-latest | ||
| 22 | steps: | ||
| 13 | - name: install dependencies | 23 | - name: install dependencies |
| 14 | run: | | 24 | run: | |
| 15 | if [ "$RUNNER_OS" == "Linux" ]; then | ||
| 16 | sudo apt-get install cython | ||
| 17 | elif [ "$RUNNER_OS" == "macOS" ]; then | ||
| 18 | if test -x "`which port`"; then | 25 | if test -x "`which port`"; then |
| 19 | sudo port install libtool autoconf automake cython | 26 | sudo port install libtool autoconf automake cython |
| 20 | else | 27 | else |
| 21 | brew install libtool autoconf automake cython | 28 | brew install libtool autoconf automake cython |
| 22 | fi | 29 | fi |
| 23 | else | ||
| 24 | echo "$RUNNER_OS not supported" | ||
| 25 | exit 1 | ||
| 26 | fi | ||
| 27 | shell: bash | 30 | shell: bash |
| 31 | - uses: actions/checkout@v1 | ||
| 28 | - name: autogen | 32 | - name: autogen |
| 29 | run: ./autogen.sh | 33 | run: ./autogen.sh |
| 30 | - name: make | 34 | - name: make |
| 31 | run: make | 35 | run: make |
| 32 | - name: make check | 36 | - name: make check |
| 33 | run: make check | 37 | run: make check |
| 34 | - name: make distcheck | 38 | build-windows: |
| 35 | run: make distcheck | 39 | runs-on: windows-latest |
| 36 | 40 | steps: | |
| 41 | - uses: numworks/setup-msys2@v1 | ||
| 42 | - name: install dependencies | ||
| 43 | run: msys2do pacman -S --noconfirm mingw-w64-x86_64-gcc mingw-w64-x86_64-g++ make libtool autoconf automake mingw-w64-x86_64 | ||
| 44 | - uses: actions/checkout@v1 | ||
| 45 | - name: autogen | ||
| 46 | run: ./autogen.sh --without-cython | ||
| 47 | - name: make | ||
| 48 | run: make | ||
| 49 | - name: make check | ||
| 50 | run: make check | ||
