Skip to content

Commit 6723e55

Browse files
committed
Explicitly load GCC 15.2 when necessary
1 parent 320d154 commit 6723e55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/actions/configure-cmake/action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ runs:
4646
run: |
4747
# Source the container entrypoint script
4848
. /entrypoint.sh
49+
50+
# Load Spack-installed GCC if necessary
51+
if [ "$CPP_COMPILER" == "g++" ]
52+
spack load gcc@15.2
53+
CPP_COMPILER=$(which g++)
54+
fi
55+
4956
cd "$GITHUB_WORKSPACE/$BUILD_PATH"
5057
SOURCE_DIR="$GITHUB_WORKSPACE/$SOURCE_PATH"
5158
echo "Configuring with CMake preset: $PRESET"

0 commit comments

Comments
 (0)