57
57
58
58
# We don't cache this job, as it will be invalidated every day due to nightly usage
59
59
60
- - name : Bump opt-level
61
- run : sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
62
-
63
60
- name : Test
64
61
run : cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet
65
62
@@ -97,30 +94,18 @@ jobs:
97
94
if : matrix.os == 'ubuntu-latest'
98
95
run : echo "::add-matcher::.github/rust.json"
99
96
100
- - name : Bump opt-level
101
- if : matrix.os == 'ubuntu-latest'
102
- run : sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
103
-
104
- - name : Cache Dependencies
105
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
106
- with :
107
- workspaces : |
108
- . -> target
109
- ./crates/proc-macro-srv/proc-macro-test/imp -> target
97
+ # - name: Cache Dependencies
98
+ # uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
99
+ # with:
100
+ # workspaces: |
101
+ # . -> target
102
+ # ./crates/proc-macro-srv/proc-macro-test/imp -> target
110
103
111
104
- uses : taiki-e/install-action@nextest
112
105
113
- - name : Codegen checks (rust-analyzer)
114
- run : cargo codegen --check
115
-
116
106
- name : Compile (tests)
117
107
run : cargo test --no-run
118
108
119
- # It's faster to `test` before `build` ¯\_(ツ)_/¯
120
- - name : Compile (rust-analyzer)
121
- if : matrix.os == 'ubuntu-latest'
122
- run : cargo build --quiet
123
-
124
109
- name : Test
125
110
if : matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' || github.event_name == 'push'
126
111
run : cargo nextest run --no-fail-fast --hide-progress-bar --status-level fail
@@ -131,7 +116,6 @@ jobs:
131
116
132
117
analysis-stats :
133
118
if : github.repository == 'rust-lang/rust-analyzer'
134
- name : miri
135
119
runs-on : ubuntu-latest
136
120
137
121
steps :
@@ -144,8 +128,14 @@ jobs:
144
128
rustup default stable
145
129
rustup component add rustfmt
146
130
147
- - name : Cache Dependencies
148
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
131
+ # - name: Cache Dependencies
132
+ # uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
133
+
134
+ - name : Bump opt-level
135
+ run : sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
136
+
137
+ - name : Codegen checks (rust-analyzer)
138
+ run : cargo codegen --check
149
139
150
140
- name : ./rust-analyzer
151
141
run : cargo run -p rust-analyzer -- analysis-stats . -q
@@ -157,7 +147,6 @@ jobs:
157
147
158
148
rustfmt :
159
149
if : github.repository == 'rust-lang/rust-analyzer'
160
- name : miri
161
150
runs-on : ubuntu-latest
162
151
163
152
steps :
@@ -174,7 +163,6 @@ jobs:
174
163
175
164
miri :
176
165
if : github.repository == 'rust-lang/rust-analyzer'
177
- name : miri
178
166
runs-on : ubuntu-latest
179
167
180
168
steps :
@@ -187,8 +175,8 @@ jobs:
187
175
rustup default nightly
188
176
rustup component add miri
189
177
190
- - name : Cache Dependencies
191
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
178
+ # - name: Cache Dependencies
179
+ # uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
192
180
193
181
- run : cargo miri test -p intern
194
182
@@ -214,8 +202,8 @@ jobs:
214
202
rustup update --no-self-update stable
215
203
rustup target add ${{ env.targets }} ${{ env.targets_ide }}
216
204
217
- - name : Cache Dependencies
218
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
205
+ # - name: Cache Dependencies
206
+ # uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
219
207
220
208
- name : Check
221
209
run : |
@@ -306,7 +294,7 @@ jobs:
306
294
run : typos
307
295
308
296
conclusion :
309
- needs : [rust, rust-cross, typescript, typo-check, proc-macro-srv, miri]
297
+ needs : [rust, rust-cross, typescript, typo-check, proc-macro-srv, miri, rustfmt, analysis-stats ]
310
298
# We need to ensure this job does *not* get skipped if its dependencies fail,
311
299
# because a skipped job is considered a success by GitHub. So we have to
312
300
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
0 commit comments