From 38b120eb5ad977de65881372aab48528705afdef Mon Sep 17 00:00:00 2001 From: Alexander Amelkin Date: Wed, 1 Jul 2020 01:01:39 +0300 Subject: ci: Add Windows/cygwin config Signed-off-by: Alexander Amelkin --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d816cc..d035e4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,3 +80,43 @@ jobs: run: make check - name: make distcheck run: make distcheck + + win-srv-2019: + + runs-on: windows-2019 + + steps: + - name: install dependencies + run: |- + choco install cygwin -y + choco install cyg-get -y + # Line continuation in PowerShell is backtick. Weird as Windows. + cyg-get gcc-g++ ` + make ` + automake ` + autoconf ` + m4 ` + libtool ` + libncurses-devel ` + libreadline-devel ` + libssl-devel ` + unix2dos ` + wget + echo "::add-path::C:/tools/cygwin/bin" + echo "::add-path::C:/tools/cygwin/usr/bin" + - uses: actions/checkout@v2 + - name: convert line ends + # checkout action on Windows apparently converts line ends + # so we have to convert them back because cygwin bash can't + # can't handle Windows line ends + run: dos2unix bootstrap configure.ac csv-revision + - name: bootstrap + run: bash -c "./bootstrap" + - name: configure + run: bash -c "./configure" + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck -- cgit v1.2.1