aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-02-20 08:04:59 +0100
committerMarc André Tanner <mat@brain-dump.org>2020-02-20 13:50:07 +0100
commitc21962b5abc48bfeb94cb5d1d30adf86919f67cd (patch)
treeb1f51da8d038e5c40d7bf5bd88a3204007e15e9f /.github
parentb8a9c47f5edf5496d7ac3148fb97325a1c947f91 (diff)
downloadvis-c21962b5abc48bfeb94cb5d1d30adf86919f67cd.tar.gz
vis-c21962b5abc48bfeb94cb5d1d30adf86919f67cd.tar.xz
ci: add windows builds
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644
index 0000000..80f86ed
--- /dev/null
+++ b/.github/workflows/windows.yml
@@ -0,0 +1,52 @@
+name: Windows
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ os:
+ - windows-2019
+ config:
+ - ""
+ - --disable-lua
+ - --disable-help
+ runs-on: ${{ matrix.os }}
+ env:
+ CFLAGS_EXTRA: --coverage
+ steps:
+
+ - name: Dependency
+ run: |
+ choco install --no-progress --yes --force --source=cygwin gcc-core,libtool,make,wget,pkg-config
+ choco install --no-progress --yes --force --source=cygwin lua,lua-devel,lua-lpeg,libncurses-devel
+ echo '::add-path::C:\tools\cygwin\bin'
+
+ - name: Git configuration
+ run: |
+ git config --global core.autocrlf input
+ git config --global core.symlinks true
+
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Cygwin git configuration
+ shell: bash
+ run: mkdir $HOME && git config --global core.autocrlf input
+
+ - name: Libtermkey
+ shell: bash
+ run: make dependency/build/libtermkey-install
+
+ - name: Build
+ shell: bash
+ run: ./configure CFLAGS="-I$(pwd)/dependency/install/usr/include" LDFLAGS="-L$(pwd)/dependency/install/usr/lib" ${{ matrix.config }} && make
+
+ - name: Test
+ shell: bash
+ run: make test
+
+ - name: Upload Test Coverage
+ shell: bash
+ run: bash <(curl -s https://codecov.io/bash)