Skip to content

Commit 01c763a

Browse files
committed
use pkg_type to determine cache type
1 parent 48c3f59 commit 01c763a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pr-build-test.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,12 @@ jobs:
242242
pkg_family=$(echo "$recipe_path" | cut -d'/' -f2)
243243
recipe_name=$(basename "$recipe_path" .yaml 2>/dev/null || echo "unknown")
244244
245-
# Determine cache type from path
246-
if echo "$recipe_path" | grep -q "^packages/"; then
247-
CACHE_TYPE="pkgcache"
248-
else
245+
# Determine cache type from pkg_type (first part of recipe name)
246+
pkg_type=$(echo "$recipe_name" | cut -d'.' -f1)
247+
if [ "$pkg_type" = "static" ] || [ "$pkg_type" = "dynamic" ]; then
249248
CACHE_TYPE="bincache"
249+
else
250+
CACHE_TYPE="pkgcache"
250251
fi
251252
252253
case "$status" in

0 commit comments

Comments
 (0)