Skip to content

Commit

Permalink
Add ci:dry-run to skip performing builds but still test the matrix (#…
Browse files Browse the repository at this point in the history
…437)

In general, I think this will be a little niche but in the short-term
it'll be really helpful for iterating on our build matrix.
  • Loading branch information
zanieb committed Dec 18, 2024
1 parent 6b4d414 commit 06b3ea3
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 06b3ea3

Please sign in to comment.