vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 2b9e360e3849fb5fbb46487459eaa91e812b1b8f
parent e7cbffd1e22da4c019e4cc65ebc854953fb3aab5
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 20 Feb 2020 08:04:59 +0100

ci: add windows builds

Diffstat:
A.github/workflows/windows.yml | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/windows.yml 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)