summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2021-10-10 15:47:15 -0700
committerMichael Grunder <michael.grunder@gmail.com>2021-10-12 13:06:11 -0700
commit6ad4ccf3c7c6bed282f55d4658462b8c40c6ad39 (patch)
tree87e06ca353654c2247ff653f9a6cb8dbfaa18183 /.github/workflows
parent783a3789c2c2a7fb1cc28c33d532a4366db9100a (diff)
Add Cygwin build test
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3f146db..9053d27 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -87,3 +87,21 @@ jobs:
- name: Run tests
run: |
./build/hiredis-test.exe
+
+ - name: Setup cygwin
+ uses: egor-tensin/setup-cygwin@v3
+ with:
+ platform: x64
+ packages: cmake gcc-core gcc-g++
+
+ - name: Build in cygwin
+ env:
+ HIREDIS_PATH: ${{ github.workspace }}
+ run: |
+ build_hiredis() {
+ cd $(cygpath -u $HIREDIS_PATH)
+ rm -rf build && mkdir build && cd build
+ cmake .. -G "Unix Makefiles" && make VERBOSE=1
+ }
+ build_hiredis
+ shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'