From 9f026e1fbf3199c5b55bb2b1e66512360aa4fc8b Mon Sep 17 00:00:00 2001 From: Andrea Zonca Date: Tue, 5 Dec 2023 20:35:52 +0000 Subject: [PATCH 1/2] ci: size of index and content are different, test should fail --- header-only/tests/test_1494-layout-builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header-only/tests/test_1494-layout-builder.cpp b/header-only/tests/test_1494-layout-builder.cpp index c9c6201fef..3a58c24ca7 100644 --- a/header-only/tests/test_1494-layout-builder.cpp +++ b/header-only/tests/test_1494-layout-builder.cpp @@ -1275,7 +1275,7 @@ test_IndexedOption() { double data[3] = {3.3, 4.4, 5.5}; - builder.extend_valid(3); + builder.extend_valid(1); subbuilder.extend(data, 3); builder.extend_invalid(2); From 21ee551f94e49db2ecbc158e13bae32c6b70e24f Mon Sep 17 00:00:00 2001 From: Andrea Zonca Date: Tue, 5 Dec 2023 20:38:17 +0000 Subject: [PATCH 2/2] ci: compile in Debug mode --- .github/workflows/header-only-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/header-only-test.yml b/.github/workflows/header-only-test.yml index d91c48fe0b..5c5e855b4d 100644 --- a/.github/workflows/header-only-test.yml +++ b/.github/workflows/header-only-test.yml @@ -24,7 +24,7 @@ jobs: - name: Run CMake run: | - cmake -B build -S header-only -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=bin -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON + cmake -B build -S header-only -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=bin -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON cmake --build build/ - name: Run tests