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 4646 path : target/release/pythonbuild
4747
4848 image :
49+ needs :
50+ - generate-matrix
51+ if : ${{ needs.generate-matrix.outputs.any_builds }}
4952 strategy :
5053 fail-fast : false
5154 matrix :
@@ -138,6 +141,14 @@ jobs:
138141 uv run ci-matrix.py --platform linux --labels "${{ steps.get-labels.outputs.labels }}" > matrix.json && echo "matrix=$(cat matrix.json)" >> $GITHUB_OUTPUT
139142 # Display the matrix for debugging too
140143 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
141152
142153 build :
143154 needs :
You can’t perform that action at this time.
0 commit comments