From c449b556c5f6327c892612d298786230175a4750 Mon Sep 17 00:00:00 2001 From: yellowhatter Date: Thu, 22 Aug 2024 17:02:01 +0300 Subject: [PATCH] Update ci.yml and CMakeLists.txt --- .github/workflows/ci.yml | 1 + tests/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f01bfcb67..8fd9b0e15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,6 +108,7 @@ jobs: run: cargo test --verbose --release --features=logger-autoinit - name: Upload artifact + if: ${{ matrix.unstable == 'false' && matrix.shm == 'false' }} uses: actions/upload-artifact@v4 with: # Artifact name diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 89d980847..dcbd75f2f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,8 +9,8 @@ foreach(file ${files}) get_filename_component(target ${file} NAME_WE) # Exclude SHM tests if SHM feature is disabled - if(NOT(ZENOHC_BUILD_WITH_SHARED_MEMORY)) - if(${target} MATCHES "^.*_shm.*$") + if(NOT(ZENOHC_BUILD_WITH_SHARED_MEMORY AND (ZENOHC_BUILD_WITH_UNSTABLE_API))) + if(${target} MATCHES "^.*_shm.*$") continue() endif() endif()