Skip to content

Commit 62dd614

Browse files
committed
CI: For minimal build, do not use global settings
1 parent 66d7e4f commit 62dd614

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎.github/workflows/root-ci.yml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ jobs:
385385
- image: alma10
386386
# Minimal build
387387
- image: alma10
388-
overrides: ["minimal=ON", pythia8=OFF, tmva-sofie=OFF]
388+
minimal: true
389389
- image: ubuntu22
390390
overrides: ["imt=Off", "CMAKE_BUILD_TYPE=Debug"]
391391
- image: ubuntu2404
@@ -493,6 +493,19 @@ jobs:
493493
run: 'printf "%s@%s\\n" "$(whoami)" "$(hostname)";
494494
ls -la
495495
'
496+
- name: Apply option minimal request from matrix for this job
497+
if: ${{ matrix.minimal == true }}
498+
env:
499+
GLOBAL_CONFIG_DIR: '.github/workflows/root-ci-config/buildconfig
500+
CONFIGFILE_STEM='.github/workflows/root-ci-config/buildconfig/${{ matrix.image }}'
501+
run: |
502+
echo "Applying minimal request options"
503+
# Add commands to apply minimal request options here
504+
set -x
505+
cp "$GLOBAL_CONFIG_DIR/global-minimal.txt" "$GLOBAL_CONFIG_DIR/global.txt"
506+
if [ -f "${CONFIGFILE_STEM}-minimal.txt" ]; then
507+
cp "$GLOBAL_CONFIG_DIR/global-minimal.txt" "${CONFIGFILE_STEM}.txt"
508+
fi
496509
497510
- name: Apply option overrides from matrix for this job for all builds except non-special nightlies and releases
498511
if: ${{ ( github.event_name != 'schedule' || matrix.is_special) && github.event_name != 'workflow_dispatch' && matrix.overrides != NaN }}

0 commit comments

Comments
 (0)