@@ -86,42 +86,33 @@ jobs:
86
86
- name : Test
87
87
run : bash ./ci.sh
88
88
89
- clippy :
90
- name : clippy + rustdoc
89
+ style :
90
+ name : style checks
91
91
runs-on : ubuntu-latest
92
92
steps :
93
93
- uses : actions/checkout@v3
94
94
- name : Install required toolchain
95
95
# We need a toolchain that can actually build Miri, just a nightly won't do.
96
96
run : |
97
97
cargo install rustup-toolchain-install-master # TODO: cache this?
98
- ./rustup-toolchain "" -c clippy
99
- - name : Clippy (miri)
98
+ ./rustup-toolchain "" -c clippy -c rustfmt
99
+ - name : rustfmt (miri, ui_test)
100
+ run : cargo fmt --all --check
101
+ - name : rustfmt (everything else)
102
+ # TODO: Add `tests` (work in progress).
103
+ # Maybe change to `find . -name '*.rs'`, superseding the previous step.
104
+ run : |
105
+ find bench-cargo-miri benches cargo-miri test-cargo-miri -name '*.rs' \
106
+ | xargs rustfmt --edition=2021 --config-path ./rustfmt.toml --check
107
+ - name : clippy (miri)
100
108
run : cargo clippy --all-targets -- -D warnings
101
109
# - name: Clippy (ui_test)
102
110
# run: cargo clippy --manifest-path ui_test/Cargo.toml --all-targets -- -D warnings
103
- - name : Clippy (cargo-miri)
111
+ - name : clippy (cargo-miri)
104
112
run : cargo clippy --manifest-path cargo-miri/Cargo.toml --all-targets -- -D warnings
105
- - name : Rustdoc
113
+ - name : rustdoc
106
114
run : RUSTDOCFLAGS="-Dwarnings" cargo doc --document-private-items
107
115
108
- fmt :
109
- name : formatting (ignored by bors)
110
- runs-on : ubuntu-latest
111
- steps :
112
- - uses : actions/checkout@v3
113
- - name : Install latest nightly
114
- run : |
115
- rustup toolchain install nightly --component rustfmt
116
- rustup override set nightly
117
- - name : Formatting (miri, ui_test)
118
- run : cargo fmt --all --check
119
- - name : Formatting (everything else)
120
- # TODO: Add `tests` (work in progress).
121
- # Maybe change to `find . -name '*.rs'`, superseding the previous step.
122
- run : find bench-cargo-miri benches cargo-miri test-cargo-miri -name '*.rs'
123
- | xargs rustfmt --edition=2021 --config-path ./rustfmt.toml --check
124
-
125
116
# These jobs doesn't actually test anything, but they're only used to tell
126
117
# bors the build completed, as there is no practical way to detect when a
127
118
# workflow is successful listening to webhooks only.
@@ -131,15 +122,15 @@ jobs:
131
122
end-success :
132
123
name : bors build finished
133
124
runs-on : ubuntu-latest
134
- needs : [build, clippy ]
125
+ needs : [build, style ]
135
126
if : github.event.pusher.name == 'bors' && success()
136
127
steps :
137
128
- name : mark the job as a success
138
129
run : exit 0
139
130
end-failure :
140
131
name : bors build finished
141
132
runs-on : ubuntu-latest
142
- needs : [build, clippy ]
133
+ needs : [build, style ]
143
134
if : github.event.pusher.name == 'bors' && (failure() || cancelled())
144
135
steps :
145
136
- name : mark the job as a failure
@@ -149,7 +140,7 @@ jobs:
149
140
cron-fail-notify :
150
141
name : cronjob failure notification
151
142
runs-on : ubuntu-latest
152
- needs : [build, clippy ]
143
+ needs : [build, style ]
153
144
if : github.event_name == 'schedule' && (failure() || cancelled())
154
145
steps :
155
146
- name : Install zulip-send
0 commit comments