Skip to content

I love fighting with syntax #40

I love fighting with syntax

I love fighting with syntax #40

Workflow file for this run

on: [push]
name: Test
jobs:
test:
name: Build and test driver on windows-2022
runs-on: windows-2019
env:
CASS_DRIVER_LIBEV_INCLUDES: C:\vcpkg\packages\libev_x64-windows\include\libev
CASS_DRIVER_LIBEV_LIBS: C:\vcpkg\packages\libev_x64-windows\lib
LIBUV_ROOT_DIR: C:\vcpkg\packages\libuv_x64-windows
LIBUV_LIB_DIR: C:\vcpkg\packages\libuv_x64-windows\lib
ZLIB_ROOT_DIR: C:\vcpkg\packages\zlib_x64-windows
ZLIB_LIB_DIR: C:\vcpkg\packages\zlib_x64-windows\lib
KERBEROS_ROOT_DIR: C:\vcpkg\packages\krb5_x64-windows
KERBEROS_LIB_DIR: C:\vcpkg\packages\krb5_x64-windows\lib
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: vcpkg install libuv zlib krb5
- uses: ilammy/msvc-dev-cmd@v1
- name: Build and run tests
run: |
mkdir build
cd build
LIB=$LIB:${LIBUV_LIB_DIR}:${ZLIB_LIB_DIR}:${KERBEROS_LIB_DIR}
echo $LIB
cmake -G "NMake Makefiles" -DCASS_BUILD_UNIT_TESTS=On ..
nmake
ls .
ldd ./cassandra-unit-tests.exe
./cassandra-unit-tests.exe --gtest_output=xml:gtest-results.xml
ls .
- name: Publish results
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: build\gtest-results.xml