From beb26bc0963674c0cc536f5addbeab099828bc9e Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 29 Apr 2020 11:53:56 -0700 Subject: [PATCH] use ninja for local builds --- .github/workflows/ccpp.yml | 4 ++-- makefile | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 4ec220fb..ddf6c449 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: make test - run: make test + - name: make test_make + run: make test_make mac_tsan_sectransport: runs-on: macOS-latest diff --git a/makefile b/makefile index 81afc159..c20ea38d 100644 --- a/makefile +++ b/makefile @@ -20,7 +20,7 @@ install: brew # Release, Debug, MinSizeRel, RelWithDebInfo are the build types # brew: - mkdir -p build && (cd build ; cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 .. ; make -j 4 install) + mkdir -p build && (cd build ; cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 .. ; ninja install) # Docker default target. We've add problem with OpenSSL and TLS 1.3 (on the # server side ?) and I can't work-around it easily, so we're using mbedtls on @@ -103,6 +103,10 @@ test_server: # env TEST=Websocket_chat make test # env TEST=heartbeat make test test: + mkdir -p build && (cd build ; cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 .. ; ninja install) + (cd test ; python2.7 run.py -r) + +test_make: mkdir -p build && (cd build ; cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 .. ; make -j 4) (cd test ; python2.7 run.py -r)