File tree Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change 8181 echo "$CHANGED_DIRS"
8282
8383 # Convert to JSON array of {name, version} objects
84+ # Skip derived LLVM packages (they're built with the main llvm package)
85+ DERIVED_LLVM_PACKAGES="clang\+\+|clang-format|clang-tidy|llvm-cov"
86+
8487 PACKAGES="["
8588 FIRST=true
8689 COUNT=0
8992 PACKAGE_NAME=$(echo "$dir" | cut -d'/' -f2)
9093 PACKAGE_VERSION=$(echo "$dir" | cut -d'/' -f3)
9194
95+ # Skip derived LLVM packages - they're built together with llvm
96+ if echo "$PACKAGE_NAME" | grep -E "^($DERIVED_LLVM_PACKAGES)$" > /dev/null; then
97+ echo "Skipping $PACKAGE_NAME (derived from llvm, build llvm instead)"
98+ continue
99+ fi
100+
92101 # Apply filter if provided
93102 if [ -n "$PACKAGE_FILTER" ]; then
94103 if ! echo "$PACKAGE_NAME" | grep -E "$PACKAGE_FILTER" > /dev/null; then
@@ -116,6 +125,12 @@ jobs:
116125 done <<< "$CHANGED_DIRS"
117126 PACKAGES="${PACKAGES}]"
118127
128+ if [ "$COUNT" -eq 0 ]; then
129+ echo "has_changes=false" >> $GITHUB_OUTPUT
130+ echo "No testable packages after filtering"
131+ exit 0
132+ fi
133+
119134 echo "packages=$PACKAGES" >> $GITHUB_OUTPUT
120135 echo "Total packages to test: $COUNT"
121136 echo "Packages JSON: $PACKAGES"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments