Skip to content

Commit

Permalink
Only set environemnt when not running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gwauge committed Dec 6, 2024
1 parent 22b1e04 commit ac733a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ set -e

# Script to build the project

# source /opt/intel/oneapi/setvars.sh
# check if inside CI environment
if [ ! -n "$CI" ]; then
source /opt/intel/oneapi/setvars.sh
fi

# Check if script is run from root directory
if [ ! -f "main.cpp" ]; then
Expand Down

0 comments on commit ac733a2

Please sign in to comment.