Commit 510c5fa5 authored by Nikias Bassen's avatar Nikias Bassen

[github actions] Trying to add windows to build workflow

parent 2d5a1bb8
...@@ -3,34 +3,48 @@ name: build ...@@ -3,34 +3,48 @@ name: build
on: [push] on: [push]
jobs: jobs:
build: build-linux-ubuntu:
strategy: runs-on: ubuntu-latest
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps: steps:
- name: install dependencies
run: sudo apt-get install cython
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: autogen
run: ./autogen.sh
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
build-macOS:
runs-on: macOS-latest
steps:
- name: install dependencies - name: install dependencies
run: | run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install cython
elif [ "$RUNNER_OS" == "macOS" ]; then
if test -x "`which port`"; then if test -x "`which port`"; then
sudo port install libtool autoconf automake cython sudo port install libtool autoconf automake cython
else else
brew install libtool autoconf automake cython brew install libtool autoconf automake cython
fi fi
else
echo "$RUNNER_OS not supported"
exit 1
fi
shell: bash shell: bash
- uses: actions/checkout@v1
- name: autogen - name: autogen
run: ./autogen.sh run: ./autogen.sh
- name: make - name: make
run: make run: make
- name: make check - name: make check
run: make check run: make check
- name: make distcheck build-windows:
run: make distcheck runs-on: windows-latest
steps:
- uses: numworks/setup-msys2@v1
- name: install dependencies
run: msys2do pacman -S --noconfirm mingw-w64-x86_64-gcc mingw-w64-x86_64-g++ make libtool autoconf automake mingw-w64-x86_64
- uses: actions/checkout@v1
- name: autogen
run: ./autogen.sh --without-cython
- name: make
run: make
- name: make check
run: make check
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment