From b8e24b8e2ea9960e75cfa5080ec1622488712964 Mon Sep 17 00:00:00 2001 From: Alberto Maschietto Date: Tue, 8 Sep 2026 01:33:22 +0400 Subject: [PATCH] ci: test secure-memory builds in the CMake matrix --- .github/workflows/cmake.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index cccf8ed6c..234159526 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -13,6 +13,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] cxx_standard: [11, 17, 20] + secure_memory: [ON, OFF] steps: - name: checkout project @@ -21,5 +22,13 @@ jobs: - name: build project uses: threeal/cmake-action@v2.0.0 with: - options: CMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} + build-dir: build + options: | + CMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} + CMAKE_BUILD_TYPE=Debug + JSONCPP_USE_SECURE_MEMORY=${{ matrix.secure_memory }} + build-args: --config Debug + + - name: test project + run: ctest --test-dir build --build-config Debug --output-on-failure --no-tests=error