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:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-04-29 20:53:56 +02:00
|
|
|
- name: make test_make
|
|
|
|
run: make test_make
|
2019-09-23 03:45:30 +02:00
|
|
|
|
2020-03-27 03:40:52 +01:00
|
|
|
mac_tsan_sectransport:
|
2019-09-23 03:45:30 +02:00
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-03-27 00:46:11 +01:00
|
|
|
- name: make test_tsan
|
|
|
|
run: make test_tsan
|
2019-09-23 03:45:30 +02:00
|
|
|
|
2020-03-27 00:46:11 +01:00
|
|
|
mac_tsan_openssl:
|
2020-03-19 04:53:54 +01:00
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-03-27 00:46:11 +01:00
|
|
|
- name: install openssl
|
2020-04-25 20:53:09 +02:00
|
|
|
run: brew install openssl@1.1
|
2020-03-27 00:46:11 +01:00
|
|
|
- name: make test
|
|
|
|
run: make test_tsan_openssl
|
2020-03-19 04:53:54 +01:00
|
|
|
|
2020-03-27 03:16:04 +01:00
|
|
|
mac_tsan_mbedtls:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: install mbedtls
|
|
|
|
run: brew install mbedtls
|
|
|
|
- name: make test
|
|
|
|
run: make test_tsan_mbedtls
|
|
|
|
|
2020-05-01 19:44:10 +02:00
|
|
|
windows:
|
2020-03-16 02:38:09 +01:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: seanmiddleditch/gha-setup-vsdevenv@master
|
|
|
|
- run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2020-04-26 00:58:49 +02:00
|
|
|
cmake -DCMAKE_CXX_COMPILER=cl.exe -DUSE_WS=1 -DUSE_TEST=1 ..
|
2020-03-16 02:38:09 +01:00
|
|
|
- run: cmake --build build
|
2020-02-08 02:15:16 +01:00
|
|
|
|
2020-04-05 02:49:52 +02:00
|
|
|
# Running the unittest does not work, the binary cannot be found
|
2020-03-16 02:38:09 +01:00
|
|
|
#- run: ../build/test/ixwebsocket_unittest.exe
|
|
|
|
# working-directory: test
|
2020-04-05 02:49:52 +02:00
|
|
|
|
2020-05-01 19:44:10 +02:00
|
|
|
uwp:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: seanmiddleditch/gha-setup-vsdevenv@master
|
|
|
|
- run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2020-05-01 20:27:59 +02:00
|
|
|
cmake -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0" -DCMAKE_CXX_COMPILER=cl.exe -DUSE_TEST=1 ..
|
2020-05-01 19:44:10 +02:00
|
|
|
- run: cmake --build build
|
|
|
|
|
2020-04-05 02:49:52 +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
|
|
|
|
#
|
|
|
|
# # Running the unittest does not work, the binary cannot be found
|
|
|
|
# #- run: ../build/test/ixwebsocket_unittest.exe
|
|
|
|
# # working-directory: test
|
|
|
|
|