Skip to content

Commit

Permalink
try to get camp to take -Wno-shadow flag. do not run unit tests for g…
Browse files Browse the repository at this point in the history
…pu builds
  • Loading branch information
rrsettgast committed Oct 22, 2023
1 parent b4c6c39 commit 62418dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/continuousIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
CMAKE_C_COMPILER: clang
CMAKE_BUILD_TYPE: Release
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"

- name: RHEL8.8-gcc12-cuda11-rel (ubi8.8, gcc 12.2.1, cuda-12.2.2, Release)
DOCKER_REPOSITORY: geosx/ubi8:ubi8.8-cuda12.2.2
Expand All @@ -97,6 +98,7 @@ jobs:
CMAKE_C_COMPILER: /opt/rh/gcc-toolset-12/root/bin/gcc
CMAKE_BUILD_TYPE: Release
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"

steps:
- name: Checkout Repository
Expand Down
1 change: 1 addition & 0 deletions cmake/CMakeBasics.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ endif()


set( CAMP_ENABLE_TESTS OFF CACHE BOOL "")
target_compile_options( camp PRIVATE "-Wno-shadow")
5 changes: 4 additions & 1 deletion scripts/ci_build_and_test_in_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ if [[ "$*" == *--test-documentation* ]]; then
fi

or_die make
or_die ctest --output-on-failure

if [[ "$*" != *--disable-unit-tests* ]]; then
or_die ctest --output-on-failure -E "testUncrustifyCheck|testDoxygenCheck"
fi


exit 0

0 comments on commit 62418dc

Please sign in to comment.