1 parent c5539d7 commit 93a448dCopy full SHA for 93a448d
1 file changed
.github/actions/fetch_ctk/action.yml
@@ -277,7 +277,12 @@ runs:
277
cp -r $CACHE_TMP_DIR/* $CUDA_PATH
278
rm -rf $CACHE_TMP_DIR $CTK_CACHE_FILENAME
279
ls -l $CUDA_PATH
280
- if [ ! -d "$CUDA_PATH/include" ]; then
+ # redistrib.json is present for stable-channel installs; include/ is
281
+ # present for prerelease installs (enforced at cache-creation time).
282
+ # Components that don't ship headers (e.g. cuda_sanitizer_api) have
283
+ # neither, so checking only for include/ incorrectly rejects them.
284
+ if [[ ! -e "$CUDA_PATH/redistrib.json" && ! -d "$CUDA_PATH/include" ]]; then
285
+ echo "CTK restore appears incomplete: neither redistrib.json nor include/ found in $CUDA_PATH" >&2
286
exit 1
287
fi
288
0 commit comments