mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 23:37:14 +02:00
updated github workflow scripts to support automatic version numbering with environment variable
Some checks failed
Native CMake Build / Configure and build using cmake (push) Failing after 24s
Some checks failed
Native CMake Build / Configure and build using cmake (push) Failing after 24s
This commit is contained in:
2
.github/workflows/conda_library.yaml
vendored
2
.github/workflows/conda_library.yaml
vendored
@ -33,7 +33,7 @@ jobs:
|
||||
run: conda config --set anaconda_upload no
|
||||
|
||||
- name: Build
|
||||
run: conda build conda-recipes/main-library --output-folder build_output
|
||||
run: ./conda-recipes/build_conda.sh build_output main-library
|
||||
|
||||
- name: Upload all Conda packages
|
||||
uses: actions/upload-artifact@v4
|
||||
|
2
.github/workflows/conda_python.yaml
vendored
2
.github/workflows/conda_python.yaml
vendored
@ -33,7 +33,7 @@ jobs:
|
||||
run: conda config --set anaconda_upload no
|
||||
|
||||
- name: Build
|
||||
run: conda build conda-recipes/python-client --output-folder build_output
|
||||
run: ./conda-recipes/build_conda.sh build_output python-client
|
||||
|
||||
- name: Upload all Conda packages
|
||||
uses: actions/upload-artifact@v4
|
||||
|
@ -3,6 +3,21 @@ SCRIPTDIR=$(cd "$(dirname "$0")" && pwd)
|
||||
VERSION=$(cat $SCRIPTDIR/../VERSION)
|
||||
export VERSION
|
||||
|
||||
echo "building conda package version: $VERSION"
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
output_dir=$CONDA_PREFIX/conda-bld
|
||||
else
|
||||
output_dir=$1
|
||||
fi
|
||||
|
||||
conda build .
|
||||
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
|
||||
|
Reference in New Issue
Block a user