-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the build job name instead of success in ci-checks for rustc_codegen_gcc #1648
base: master
Are you sure you want to change the base?
Conversation
I wonder if this is the correct solution, since we have multiple workflow files. |
Do you want all the workflows to succeed for a PR to be merged? In general, for a branch protection, you need to specify job names that have to succeed. Usually, if there are multiple jobs in a workflow, we create a single "success" job that merges their results together. If there are multiple workflows, there would have to be multiple success jobs per workflow (or maybe it's enough to name them all in the same way? not sure how that works). I think that Here is a PR that adds a success job to the (main?) |
If you expect them to all be successful, I think you can add another |
I don't think that we use that anywhere in rust-lang for marking CI success, but we could test drive it here 😆 https://github.com/rust-lang/rust-bindgen/blob/59a43e10b758bd86275aefceae29e874157087d8/.github/workflows/publish.yml#L4 is an example where it is used to publish crates to crates.io. |
How nice would it be if GH just had an easy way to do "required: all jobs" 🙃 |
From what I can see in the comments, this will only be ran on the default branch, so I believe this would not work for what we want to do. |
Oh, I don't know then. Maybe it works if If not, would it be feasible to combine the workflows that need to run for a PR to a single file? |
I guess there isn't much harm in just trying the PR here either but being ready to revert if GH doesn't like it. When multiple jobs have the same name the |
The job name should be
build
and notsuccess
.