Skip to content

Commit

Permalink
Add the option to use a full path to a stack
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Feb 12, 2025
1 parent ec6a878 commit 574d0c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions key4hep-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: Build and test using the Key4hep stack
inputs:
build_type:
description: release or nightly
required: true
required: false
image:
description: alma9, ubuntu22 or ubuntu24
required: true
stack:
description: key4hep or devkey
description: key4hep or devkey or full path to the setup script
required: false
default: key4hep

Expand Down Expand Up @@ -62,7 +62,9 @@ runs:
echo "Using the mold linker"
fi
if [ "${{ inputs.build_type }}" = "release" ]; then
if [[ "${{ inputs.stack }}" =~ cvmfs ]]; then
source ${{ inputs.stack }}
elif [ "${{ inputs.build_type }}" = "release" ]; then
if [ "${{ inputs.stack }}" = "key4hep" ]; then
source /cvmfs/sw.hsf.org/key4hep/setup.sh
elif [ "${{ inputs.stack }}" = "devkey" ]; then
Expand Down

0 comments on commit 574d0c5

Please sign in to comment.