Skip to content

Commit

Permalink
Update to folder specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Old-Shatterhand committed Sep 22, 2023
1 parent 3f0151f commit 360e208
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ inputs:
description: 'List of conda channels to include in the building process.'
Versions:
description: 'List of python versions to build on. Shall be given as 26, 38, or 311'
Folder:
description: 'Folder to search for the meta.yaml'
runs:
using: 'docker'
image: 'Dockerfile'
10 changes: 9 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ build_package(){
channels=$(echo $INPUT_CHANNELS | tr "," "\n")
versions=$(echo $INPUT_VERSIONS | tr "," "\n")

# may be replaced by {'python': [$INPUT_VERSIONS]}
build_command="conda-build --variants \"{'python': ["
for version in $versions; do
build_command+="'$version', "
Expand All @@ -32,7 +33,14 @@ build_package(){
build_command+=" -c $channel"
done

build_command+=" --output-folder . --no-test ."
build_command+=" --output-folder . --no-test "
if [ -z "$INPUT_FOLDER" ]
then
build_command+="."
else
build_command+="$INPUT_FOLDER"
fi

echo "Execute command: $build_command"
eval "$build_command"

Expand Down

0 comments on commit 360e208

Please sign in to comment.