summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlexander Amelkin <alexander@amelkin.msk.ru>2020-07-01 01:01:39 +0300
committerAlexander Amelkin <mocbuhtig@amelkin.msk.ru>2020-07-04 00:26:38 +0300
commit38b120eb5ad977de65881372aab48528705afdef (patch)
tree0cd8a330aba5adcc6b9a9fcb465ec49fe0697e92 /.github
parent01b53a013bbb9bb2470ed90227b67f82558206e7 (diff)
downloadipmitool-38b120eb5ad977de65881372aab48528705afdef.tar.gz
ci: Add Windows/cygwin config
Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml40
1 files changed, 40 insertions, 0 deletions
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