updating CI for RHEL and SLES builds (#956)

* updating CI for RHEL and SLES builds

* Turn off Build CI for rhel/sles

* update CI workflow

* Attempt to fix job names

* core-deb and core-rpm

* picking the right runner-set

* compiler version check for rhel/sles

* PC sampling check

* BUILD_CI off for

* trying with sudo

* supressing unused variable error

* removing LD_LIBRARY_PATH

* Revert "removing LD_LIBRARY_PATH"

This reverts commit eb2d79ab65c00a97056f6bb4b679de3aad59f593.

* Removing duplicate code
This commit is contained in:
Gopesh Bhardwaj
2024-07-18 10:08:48 +05:30
committed by GitHub
parent 90accda152
commit bb5b2c9264
2 changed files with 126 additions and 16 deletions
+18
View File
@@ -66,6 +66,24 @@ target_link_libraries(rocprofiler-build-flags INTERFACE rocprofiler-sdk::rocprof
rocprofiler_target_compile_options(rocprofiler-build-flags
INTERFACE "-W" "-Wall" "-Wno-unknown-pragmas")
# compiler version specific flags
function(set_compiler_options compiler_id version)
if(CMAKE_CXX_COMPILER_ID STREQUAL ${compiler_id} AND CMAKE_CXX_COMPILER_VERSION
VERSION_LESS_EQUAL ${version})
rocprofiler_target_compile_options(
rocprofiler-build-flags
INTERFACE "-Wno-error=extra" "-Wno-unused-variable"
"-Wno-error=unused-but-set-variable"
"-Wno-error=unused-but-set-parameter" "-Wno-error=shadow")
endif()
endfunction()
# Check GCC version
set_compiler_options("GNU" "8.5")
# Check Clang version
set_compiler_options("Clang" "13.0")
# ----------------------------------------------------------------------------------------#
# extra flags for debug information in debug or optimized binaries
#