Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed Nov 19, 2023
1 parent d7528d9 commit 6fdb0da
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,24 @@ fi

baseDir=$(dirname $aspRepoDir) # one level up
installDir=$baseDir/install

envPath=/usr/local/miniconda/envs/${envName}
if [ ! -d "$envPath" ]; then
envPath=$HOME/miniconda/envs/${envName}
fi
if [ ! -d "$envPath" ]; then
envPath=$HOME/miniconda3/envs/${envName}
# Create the conda environment. When the environemnt changes, wipe its cached
# version for this action, then this will recreate it.
# Note the variable $envName. This must also be the environment name in the
# .yaml file.
conda env create -f conda/${envName}_osx_env.yaml
fi

# # For local testing
# if [ ! -d "$envPath" ]; then
# envPath=$HOME/miniconda/envs/${envName}
# fi
# if [ ! -d "$envPath" ]; then
# envPath=$HOME/miniconda3/envs/${envName}
# fi

if [ ! -d "$envPath" ]; then
echo "Error: Directory: $envPath does not exist"
exit 1
Expand All @@ -37,13 +48,6 @@ fi
packageDir=$baseDir/packages
testDir=$baseDir/StereoPipelineTest

# Create the conda environment. When the environemnt changes, wipe its cached
# version for this action, uncomment the line below, check this in, run this
# workflow, then comment this out as the newly produced environment will get
# cached.
# Note the variable $envName. This must also be the environment name in the
# .yaml file.
conda env create -f conda/${envName}_osx_env.yaml

# Build visionworkbench
mkdir -p $baseDir
Expand Down

0 comments on commit 6fdb0da

Please sign in to comment.