Skip to content

Commit

Permalink
Only run the image builds if we are doing Linux Python builds (#438)
Browse files Browse the repository at this point in the history
Closes #433
  • Loading branch information
zanieb authored Dec 18, 2024
1 parent 6b4d414 commit cb5578c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
path: target/release/pythonbuild

image:
needs:
- generate-matrix
if: ${{ needs.generate-matrix.outputs.any_builds }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -138,6 +141,14 @@ jobs:
uv run ci-matrix.py --platform linux --labels "${{ steps.get-labels.outputs.labels }}" > matrix.json && echo "matrix=$(cat matrix.json)" >> $GITHUB_OUTPUT
# Display the matrix for debugging too
cat matrix.json | jq
if jq -e '.include | length > 0' matrix.json > /dev/null; then
# Build matrix has entries
echo "any_builds=true" >> $GITHUB_OUTPUT
else
# Build matrix is empty
echo "any_builds=true" >> $GITHUB_OUTPUT
fi
build:
needs:
Expand Down

0 comments on commit cb5578c

Please sign in to comment.