summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-12-09 02:00:21 +0100
committerGravatar Nikias Bassen2019-12-09 02:00:21 +0100
commit510c5fa564101d14a72e5800bc5d0f051ca3bcb8 (patch)
tree94c3e27c166220e4639bc1787c73218a27df07fb
parent2d5a1bb885ef88d078f91fb956be4750f5dca46c (diff)
downloadlibplist-510c5fa564101d14a72e5800bc5d0f051ca3bcb8.tar.gz
libplist-510c5fa564101d14a72e5800bc5d0f051ca3bcb8.tar.bz2
[github actions] Trying to add windows to build workflow
-rw-r--r--.github/workflows/build.yml44
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
on: [push]
jobs:
- build:
- strategy:
- matrix:
- platform: [ubuntu-latest, macos-latest]
- runs-on: ${{ matrix.platform }}
+ build-linux-ubuntu:
+ runs-on: ubuntu-latest
steps:
+ - name: install dependencies
+ run: sudo apt-get install cython
- 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
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
+ - 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-windows:
+ 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