From 9c048f418d94b912e2a4f8dd2d62a2de86f4e251 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 25 Nov 2024 17:22:50 -0600 Subject: [PATCH] fix: run celeritas loop over configs --- .github/workflows/celeritas.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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