Skip to content

Commit 2ef7858

Browse files
committedApr 19, 2025·
Auto merge of #140015 - GuillaumeGomez:subtree-update_cg_gcc_2025-04-18, r=antoyo
Subtree update GCC backend cc `@antoyo`
2 parents 191df20 + cc359b8 commit 2ef7858

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+960
-1247
lines changed
 

‎compiler/rustc_codegen_gcc/.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: CI
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
68

79
permissions:
810
contents: read
@@ -121,3 +123,22 @@ jobs:
121123
run: |
122124
cd build_system
123125
cargo test
126+
127+
# Summary job for the merge queue.
128+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
129+
success:
130+
needs: [build, duplicates, build_system]
131+
# We need to ensure this job does *not* get skipped if its dependencies fail,
132+
# because a skipped job is considered a success by GitHub. So we have to
133+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
134+
# when the workflow is canceled manually.
135+
if: ${{ !cancelled() }}
136+
runs-on: ubuntu-latest
137+
steps:
138+
# Manually check the status of all dependencies. `if: failure()` does not work.
139+
- name: Conclusion
140+
run: |
141+
# Print the dependent jobs to see them in the CI log
142+
jq -C <<< '${{ toJson(needs) }}'
143+
# Check if all jobs that we depend on (in the needs array) were successful.
144+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

‎compiler/rustc_codegen_gcc/.github/workflows/failures.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
name: Failures
33

44
on:
5-
- pull_request
5+
push:
6+
branches:
7+
- master
8+
pull_request:
69

710
permissions:
811
contents: read
@@ -108,3 +111,22 @@ jobs:
108111
echo "Error: 'the compiler unexpectedly panicked' found in output logs. CI Error!!"
109112
exit 1
110113
fi
114+
115+
# Summary job for the merge queue.
116+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
117+
success_failures:
118+
needs: [build]
119+
# We need to ensure this job does *not* get skipped if its dependencies fail,
120+
# because a skipped job is considered a success by GitHub. So we have to
121+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
122+
# when the workflow is canceled manually.
123+
if: ${{ !cancelled() }}
124+
runs-on: ubuntu-latest
125+
steps:
126+
# Manually check the status of all dependencies. `if: failure()` does not work.
127+
- name: Conclusion
128+
run: |
129+
# Print the dependent jobs to see them in the CI log
130+
jq -C <<< '${{ toJson(needs) }}'
131+
# Check if all jobs that we depend on (in the needs array) were successful.
132+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

0 commit comments

Comments
 (0)
Please sign in to comment.