Skip to content

Commit

Permalink
Turning on error checking on bash shell
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ragghianti committed Sep 4, 2024
1 parent 2be1ba6 commit 2e81c46
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/CI/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#!/bin/bash -e

source .github/CI/env_setup.sh
cmake --build .

cmake --build .
4 changes: 2 additions & 2 deletions .github/CI/configure.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#!/bin/bash -e

source .github/CI/env_setup.sh
echo cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_CONFIG

cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_CONFIG


2 changes: 0 additions & 2 deletions .github/CI/env_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ export INSTALL_DIRECTORY=install
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIRECTORY
EOF
export BUILD_CONFIG


4 changes: 2 additions & 2 deletions .github/CI/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#!/bin/bash -e

source .github/CI/env_setup.sh
cmake --build . --target install

cmake --build . --target install
2 changes: 1 addition & 1 deletion .github/CI/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -e

source .github/CI/env_setup.sh
cmake -E make_directory $BUILD_DIRECTORY

cmake -E make_directory $BUILD_DIRECTORY
6 changes: 2 additions & 4 deletions .github/CI/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e

source .github/CI/env_setup.sh

Expand All @@ -9,8 +9,6 @@ if [ "$BUILD_TYPE" = "Release" ]; then
# restrict memory use for oversubscribed runners
PARSEC_MCA_device_cuda_memory_use=10
PARSEC_MCA_device_hip_memory_use=10
if
fi

ctest --output-on-failure


0 comments on commit 2e81c46

Please sign in to comment.