diff options
author | michael-grunder <michael.grunder@gmail.com> | 2021-10-10 13:38:39 -0700 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2021-10-10 14:24:58 -0700 |
commit | 783a3789c2c2a7fb1cc28c33d532a4366db9100a (patch) | |
tree | 46aec8135be84538e5ac78cb7bff23590245de34 | |
parent | 0cac8dae1b161f400d81bf789fb3713d6dc2a18e (diff) |
Add Windows tests in GitHub actions
See: #992
TODO: MinGW/cygwin tests
-rw-r--r-- | .github/workflows/build.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2d94c5..3f146db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 |