From 9b51a85edd53ce519f8819e5a247640488778ece Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Thu, 22 Aug 2024 18:27:12 +0200 Subject: [PATCH] test for build in separate directory --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fdf3d305..06e81b973 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,13 +86,13 @@ jobs: cd build cmake --build . --target examples - - name: Build examples with zenoh-c as subbroject and static library and in debug mode + - name: Build examples with zenoh-c as subbroject and static library and in debug mode and in separate directory shell: bash run: | - mkdir -p build_examples && cd build_examples - cmake ../examples -DCMAKE_BUILD_TYPE=Debug -DZENOHC_LIB_STATIC=TRUE - cmake --build . --config Debug - cd .. && rm -rf build_examples + cd .. & mkdir -p build_examples + cmake -S zenoh-c/examples -B build_examples -DCMAKE_BUILD_TYPE=Debug -DZENOHC_LIB_STATIC=TRUE + cmake --build build_examples --config Debug + rm -rf build_examples - name: Build examples with zenoh-c as installed package shell: bash