2020-02-23 18:44:58 +01:00
|
|
|
name: unittest
|
2020-03-17 16:54:31 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2019-09-23 03:45:30 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-04-05 03:12:48 +02:00
|
|
|
#
|
|
|
|
# Windows with OpenSSL is working but disabled as it takes 13 minutes (10 for openssl) to build with vcpkg
|
|
|
|
#
|
|
|
|
windows_openssl:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: seanmiddleditch/gha-setup-vsdevenv@master
|
|
|
|
- run: |
|
|
|
|
vcpkg install zlib:x64-windows
|
|
|
|
vcpkg install openssl:x64-windows
|
|
|
|
- run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_CXX_COMPILER=cl.exe -DUSE_OPEN_SSL=1 -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 ..
|
|
|
|
- run: cmake --build build
|
2020-04-05 02:49:52 +02:00
|
|
|
|
2020-04-05 03:12:48 +02:00
|
|
|
# Running the unittest does not work, the binary cannot be found
|
|
|
|
#- run: ../build/test/ixwebsocket_unittest.exe
|
|
|
|
# working-directory: test
|