@@ -16,6 +16,10 @@ inputs:
1616 description : ' Use the EESSI module to initialise EESSI (rather than sourcing a bash script), valid values are true or false'
1717 required : false
1818 default : ' true'
19+ mount_cvmfs_only :
20+ description : ' Only mount CVMFS, do not initialise EESSI'
21+ required : false
22+ default : ' false'
1923 init_direnv :
2024 description : ' Enable direnv initialisation for the repository, valid values are true or false'
2125 required : false
@@ -34,13 +38,15 @@ runs:
3438 run : |
3539 if [ "$RUNNER_OS" == "Linux" ]; then
3640 echo 'unset BASH_ENV' >> $HOME/env_config.export
37- if [[ "${{ inputs.use_eessi_module }}" == "true" ]]; then
38- # Make the EESSI module sticky so that it persists in case `module purge` is used
39- # (while still allowing for a swap if needed)
40- echo "export EESSI_MODULE_STICKY=1" >> $HOME/env_config.export
41- echo "source /cvmfs/software.eessi.io/versions/$EESSI_STACK_VERSION/init/lmod/bash" >> $HOME/env_config.export
42- else
43- echo "source /cvmfs/software.eessi.io/versions/$EESSI_STACK_VERSION/init/bash" >> $HOME/env_config.export
41+ if [[ "${{ inputs.mount_cvmfs_only }}" == "false" ]]; then
42+ if [[ "${{ inputs.use_eessi_module }}" == "true" ]]; then
43+ # Make the EESSI module sticky so that it persists in case `module purge` is used
44+ # (while still allowing for a swap if needed)
45+ echo "export EESSI_MODULE_STICKY=1" >> $HOME/env_config.export
46+ echo "source /cvmfs/software.eessi.io/versions/$EESSI_STACK_VERSION/init/lmod/bash" >> $HOME/env_config.export
47+ else
48+ echo "source /cvmfs/software.eessi.io/versions/$EESSI_STACK_VERSION/init/bash" >> $HOME/env_config.export
49+ fi
4450 fi
4551 # allow oversubscription for OpenMPI
4652 echo "export OMPI_MCA_rmaps_base_oversubscribe=1" >> $HOME/env_config.export
0 commit comments