Skip to content

Commit ac4ece2

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents 50f7b20 + 68076e1 commit ac4ece2

File tree

257 files changed

+14315
-6250
lines changed

Some content is hidden

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

257 files changed

+14315
-6250
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ max_line_length = 100
1313
[*.md]
1414
indent_size = 2
1515

16-
[*.{yml, yaml}]
16+
[*.{yml,yaml}]
1717
indent_size = 2

.github/workflows/ci.yaml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
# Please make sure that the `needs` fields for both `end-success` and `end-failure`
1+
# Please make sure that the `needs` field for the `conclusion` job
22
# are updated when adding new jobs!
33

44
name: CI
55
on:
66
pull_request:
7-
push:
8-
branches:
9-
- auto
10-
- try
11-
- automation/bors/try
7+
merge_group:
128

139
env:
1410
CARGO_INCREMENTAL: 0
@@ -104,11 +100,11 @@ jobs:
104100
if: matrix.os == 'ubuntu-latest'
105101
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats .
106102

107-
- name: Run analysis-stats on rust std library
103+
- name: Run analysis-stats on the rust standard libraries
108104
if: matrix.os == 'ubuntu-latest'
109105
env:
110-
RUSTC_BOOTSTRAP: 1
111-
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
106+
RUSTC_BOOTSTRAP: 1
107+
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/
112108

113109
- name: clippy
114110
if: matrix.os == 'windows-latest'
@@ -237,20 +233,21 @@ jobs:
237233
- name: check for typos
238234
run: typos
239235

240-
end-success:
241-
name: bors build finished
242-
if: github.event.pusher.name == 'bors' && success()
243-
runs-on: ubuntu-latest
236+
conclusion:
244237
needs: [rust, rust-cross, typescript, typo-check]
245-
steps:
246-
- name: Mark the job as successful
247-
run: exit 0
248-
249-
end-failure:
250-
name: bors build finished
251-
if: github.event.pusher.name == 'bors' && !success()
238+
# We need to ensure this job does *not* get skipped if its dependencies fail,
239+
# because a skipped job is considered a success by GitHub. So we have to
240+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
241+
# when the workflow is canceled manually.
242+
#
243+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
244+
if: ${{ !cancelled() }}
252245
runs-on: ubuntu-latest
253-
needs: [rust, rust-cross, typescript, typo-check]
254246
steps:
255-
- name: Mark the job as a failure
256-
run: exit 1
247+
# Manually check the status of all dependencies. `if: failure()` does not work.
248+
- name: Conclusion
249+
run: |
250+
# Print the dependent jobs to see them in the CI log
251+
jq -C <<< '${{ toJson(needs) }}'
252+
# Check if all jobs that we depend on (in the needs array) were successful.
253+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/target/
1+
target/
22
/dist/
3-
crates/*/target
43
**/*.rs.bk
54
**/*.rs.pending-snap
65
.idea/*

0 commit comments

Comments
 (0)