Add Windows tests in GitHub actions

See: #992

TODO:  MinGW/cygwin tests
master
michael-grunder 2021-10-10 13:38:39 -07:00 committed by Michael Grunder
parent 0cac8dae1b
commit 783a3789c2
1 changed files with 24 additions and 0 deletions

View File

@ -63,3 +63,27 @@ jobs:
- name: Run tests
run: $GITHUB_WORKSPACE/test.sh
windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
repository: ${{ env.GITHUB_REPOSITORY }}
ref: ${{ env.GITHUB_HEAD_REF }}
- name: Install dependencies
run: |
choco install -y ninja memurai-developer
- uses: ilammy/msvc-dev-cmd@v1
- name: Build hiredis
run: |
mkdir build && cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_EXAMPLES=ON
ninja -v
- name: Run tests
run: |
./build/hiredis-test.exe