Skip to content

Commit

Permalink
Add Cygwin build test
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-grunder committed Oct 12, 2021
1 parent 783a378 commit 6ad4ccf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}'

0 comments on commit 6ad4ccf

Please sign in to comment.