mazzol_a fca31cc432
Some checks failed
Native CMake Build / Configure and build using cmake (push) Failing after 24s
updated github workflow scripts to support automatic version numbering with environment variable
2025-04-22 17:05:06 +02:00

24 lines
410 B
Bash
Executable File

SCRIPTDIR=$(cd "$(dirname "$0")" && pwd)
VERSION=$(cat $SCRIPTDIR/../VERSION)
export VERSION
if [ -z "$1" ]
then
output_dir=$CONDA_PREFIX/conda-bld
else
output_dir=$1
fi
if [ -z "$2" ]
then
recipe=$SCRIPTDIR
else
recipe=$SCRIPTDIR/$2
fi
echo "building conda package version: $VERSION using recipe $recipe and writing output to $output_dir"
conda build $recipe --output-folder $output_dir