Skip to content

Commit 3315c64

Browse files
yalmusafCopilot
andcommitted
Update .github/workflows/dme-amdsmi-ci.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fecf123 commit 3315c64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/dme-amdsmi-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ jobs:
8484
run: |
8585
PROJECT_DIR=$(find "$(pwd)" -maxdepth 3 -name "CMakeLists.txt" \
8686
-path "*/amdsmi/*" -exec dirname {} \; | head -1)
87+
if [ -z "$PROJECT_DIR" ]; then
88+
echo "Error: AMDSMI project directory could not be found. Expected a CMakeLists.txt under an 'amdsmi' path within the repository." >&2
89+
exit 1
90+
fi
8791
echo "AMDSMI_DIR=${PROJECT_DIR}" >> "$GITHUB_ENV"
8892
echo "AMDSMI project: ${PROJECT_DIR}"
8993

0 commit comments

Comments
 (0)