From 2c7a0a01bac8ae69147ca3d7fa57974e74f254ca Mon Sep 17 00:00:00 2001 From: Prathamesh Deshpande <94743121+prathameshd30@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:07:18 +0530 Subject: [PATCH 1/3] Update cmake-multi-platform-val.yml --- .github/workflows/cmake-multi-platform-val.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform-val.yml b/.github/workflows/cmake-multi-platform-val.yml index 5bdc63b..61605fb 100644 --- a/.github/workflows/cmake-multi-platform-val.yml +++ b/.github/workflows/cmake-multi-platform-val.yml @@ -1,6 +1,15 @@ name: Multiplatform CMake Build, CTest, Valgrind Profiling on: + push: + branches: + - main + pull_request: + branches: + - main + paths-ignore: + - 'README.md' + workflow_dispatch: jobs: @@ -95,4 +104,4 @@ jobs: - \ No newline at end of file + From b7a27614ec757e34f34df72f1bea7f92ef34d103 Mon Sep 17 00:00:00 2001 From: Prathamesh Deshpande <94743121+prathameshd30@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:08:22 +0530 Subject: [PATCH 2/3] Add debug info to CMake builds for Valgrind --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ef16aa..059c983 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 3.28) # Needed to reduce version for compatibilit project(prime-headers) set(CMAKE_C_STANDARD 11) - set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_BUILD_TYPE RelWithDebInfo) # deliberately not including these subdirectories by glob regex as precaution From fd50f69dde598d7c7d6c3428534535422302feb3 Mon Sep 17 00:00:00 2001 From: Prathamesh Deshpande <94743121+prathameshd30@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:15:15 +0530 Subject: [PATCH 3/3] Set build type debug, comment add build type release --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 059c983..76d9570 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,8 @@ project(prime-headers) set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) -set(CMAKE_BUILD_TYPE RelWithDebInfo) +set(CMAKE_BUILD_TYPE Debug) +##set(CMAKE_BUILD_TYPE Release) # deliberately not including these subdirectories by glob regex as precaution