2020-02-23 18:44:58 +01:00
|
|
|
name: unittest
|
2019-09-23 03:45:30 +02:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
2020-02-08 02:08:25 +01:00
|
|
|
# fake comment to trigger an action 1
|
2019-09-23 03:45:30 +02:00
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: make test
|
|
|
|
run: make test
|
|
|
|
|
|
|
|
mac:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: make test
|
|
|
|
run: make test
|
|
|
|
|
2020-02-08 02:15:16 +01:00
|
|
|
# We don't need to have redis running anymore, as we have our fake limited one
|
|
|
|
# - name: install redis
|
|
|
|
# run: brew install redis
|
|
|
|
#
|
|
|
|
# - name: start redis server
|
|
|
|
# run: brew services start redis
|
|
|
|
|
2019-09-23 03:45:30 +02:00
|
|
|
# # Windows does not work yet, I'm stuck at getting CMake to run + finding vcpkg
|
|
|
|
# win:
|
|
|
|
# runs-on: windows-2016
|
|
|
|
#
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v1
|
|
|
|
#
|
|
|
|
# - name: run cmake
|
|
|
|
# run: |
|
|
|
|
# "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
# mkdir build
|
|
|
|
# cd build
|
|
|
|
# cmake -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake -DUSE_WS=1 -DUSE_TEST=1 -DUSE_TLS=1 -G"NMake Makefiles" ..
|
|
|
|
# - name: build
|
|
|
|
# run: |
|
|
|
|
# "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
# cd build
|
|
|
|
# nmake
|
|
|
|
# - name: run tests
|
|
|
|
# run:
|
|
|
|
# cd test
|
|
|
|
# ..\build\test\ixwebsocket_unittest.exe
|