File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 46
46
path : target/release/pythonbuild
47
47
48
48
image :
49
+ needs :
50
+ - generate-matrix
51
+ if : ${{ needs.generate-matrix.outputs.any_builds }}
49
52
strategy :
50
53
fail-fast : false
51
54
matrix :
@@ -138,6 +141,14 @@ jobs:
138
141
uv run ci-matrix.py --platform linux --labels "${{ steps.get-labels.outputs.labels }}" > matrix.json && echo "matrix=$(cat matrix.json)" >> $GITHUB_OUTPUT
139
142
# Display the matrix for debugging too
140
143
cat matrix.json | jq
144
+
145
+ if jq -e '.include | length > 0' matrix.json > /dev/null; then
146
+ # Build matrix has entries
147
+ echo "any_builds=true" >> $GITHUB_OUTPUT
148
+ else
149
+ # Build matrix is empty
150
+ echo "any_builds=true" >> $GITHUB_OUTPUT
151
+ fi
141
152
142
153
build :
143
154
needs :
You can’t perform that action at this time.
0 commit comments