forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#124743 - Kobzol:arbitrary-try-build, r=pietro…
…albini CI: enable arbitrary try builds, take two Fixed version of rust-lang#124631, which hopefully won't completely break our CI this time 🤦♂️ Sorry once again. Only the last commit is new. r? `@pietroalbini`
- Loading branch information
Showing
2 changed files
with
80 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,8 @@ jobs: | |
- name: Checkout the source code | ||
uses: actions/checkout@v4 | ||
- name: Calculate the CI job matrix | ||
env: | ||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
run: python3 src/ci/github-actions/calculate-job-matrix.py >> $GITHUB_OUTPUT | ||
id: jobs | ||
job: | ||
|
@@ -75,14 +77,6 @@ jobs: | |
matrix: | ||
# Check the `calculate_matrix` job to see how is the matrix defined. | ||
include: ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }} | ||
# GitHub Actions fails the workflow if an empty list of jobs is provided to | ||
# the workflow, so we need to skip this job if nothing was produced by | ||
# the Python script. | ||
# | ||
# Unfortunately checking whether a list is empty is not possible in a nice | ||
# way due to GitHub Actions expressions limits. | ||
# This hack is taken from https://github.com/ferrocene/ferrocene/blob/d43edc6b7697cf1719ec1c17c54904ab94825763/.github/workflows/release.yml#L75-L82 | ||
if: fromJSON(needs.calculate_matrix.outputs.jobs)[0] != null | ||
steps: | ||
- if: contains(matrix.os, 'windows') | ||
uses: msys2/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters