Skip to content

Commit

Permalink
ci: fix windows gh actions
Browse files Browse the repository at this point in the history
resolves #130
  • Loading branch information
sleepdefic1t committed Dec 28, 2020
1 parent 0c850a6 commit cfed4fe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,20 @@ jobs:
cmake --build .
- name: Run Tests
run: ./build/test/ark_cpp_client_tests

windows:
runs-on: windows-latest
strategy:
matrix:
build: [Debug, Release]

steps:
- uses: actions/checkout@v1
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: CMake
run: cmake -D UNIT_TEST=ON -DCURL_STATICLIB=ON -G "Visual Studio 16 2019" .
- name: Build and Run Tests
run: |
msbuild '${{ github.workspace }}\ark_cpp_client.sln'
'${{ github.workspace }}\test\Debug\ark_cpp_client_tests.exe'
7 changes: 7 additions & 0 deletions cmake/External.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,11 @@ set(CURL_INCLUDE_DIR
${EXTERNAL_LIBRARY_DIR}/curl/src/include
CACHE INTERNAL "cURL: Include Folder Path")

if (MSVC)
set(CURL_LIBRARY ${EXTERNAL_LIBRARY_DIR}/curl/src/build/lib)
find_package(CURL)
include_directories(${CURL_INCLUDE_DIRS})
link_directories(${CURL_LIBRARIES})
endif()

# ------------------------------------------------------------------------------

0 comments on commit cfed4fe

Please sign in to comment.