diff --git a/.github/workflows/celeritas.yml b/.github/workflows/celeritas.yml index 168e5b190..72234c103 100644 --- a/.github/workflows/celeritas.yml +++ b/.github/workflows/celeritas.yml @@ -26,9 +26,14 @@ jobs: network_types: "none" setup: install/bin/thisepic.sh run: | - # convert to gdml, but with sensitive detectors included - scripts/convert_to_gdml.py --compact $DETECTOR_PATH/${config}.xml --output ${config}.gdml - # create celeritas input file from template - cat celeritas.json | envsubst > ${config}.json - # run celeritas - celer-g4 ${config}.json + IFS=, read -a configs <<< "${{inputs.detector_configs}}" + for config in ${configs[@]} ; do + echo "::group::${config}" ; + # convert to gdml, but with sensitive detectors included + scripts/convert_to_gdml.py --compact $DETECTOR_PATH/${config}.xml --output ${config}.gdml + # create celeritas input file from template + cat celeritas.json | envsubst > ${config}.json + # run celeritas + celer-g4 ${config}.json + echo "::endgroup::" ; + done