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,32 +94,23 @@ 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
106
- name : Codegen checks (rust-analyzer)
107
+ if : matrix.os == 'ubuntu-latest'
114
108
run : cargo codegen --check
115
109
116
110
- name : Compile (tests)
117
111
run : cargo test --no-run
118
112
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
113
- name : Test
125
- if : matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' || github.event_name == 'push'
126
114
run : cargo nextest run --no-fail-fast --hide-progress-bar --status-level fail
127
115
128
116
- name : clippy
@@ -131,8 +119,9 @@ jobs:
131
119
132
120
analysis-stats :
133
121
if : github.repository == 'rust-lang/rust-analyzer'
134
- name : miri
135
122
runs-on : ubuntu-latest
123
+ env :
124
+ RUSTC_BOOTSTRAP : 1
136
125
137
126
steps :
138
127
- name : Checkout repository
@@ -144,20 +133,22 @@ jobs:
144
133
rustup default stable
145
134
rustup component add rustfmt
146
135
147
- - name : Cache Dependencies
148
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
136
+ # - name: Cache Dependencies
137
+ # uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
138
+
139
+ - name : Bump opt-level
140
+ run : sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
141
+
142
+ - run : cargo build -p rust-analyzer
149
143
150
144
- name : ./rust-analyzer
151
- run : cargo run -p rust-analyzer -- analysis-stats . -q
145
+ run : ./target/debug/ rust-analyzer analysis-stats . -q
152
146
153
147
- name : sysroot/lib/rustlib/src/rust/library/
154
- env :
155
- RUSTC_BOOTSTRAP : 1
156
- run : cargo run -p rust-analyzer -- analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/ -q
148
+ run : ./target/debug/rust-analyzer analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/ -q
157
149
158
150
rustfmt :
159
151
if : github.repository == 'rust-lang/rust-analyzer'
160
- name : miri
161
152
runs-on : ubuntu-latest
162
153
163
154
steps :
@@ -174,7 +165,6 @@ jobs:
174
165
175
166
miri :
176
167
if : github.repository == 'rust-lang/rust-analyzer'
177
- name : miri
178
168
runs-on : ubuntu-latest
179
169
180
170
steps :
@@ -187,8 +177,8 @@ jobs:
187
177
rustup default nightly
188
178
rustup component add miri
189
179
190
- - name : Cache Dependencies
191
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
180
+ # - name: Cache Dependencies
181
+ # uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
192
182
193
183
- run : cargo miri test -p intern
194
184
@@ -214,8 +204,8 @@ jobs:
214
204
rustup update --no-self-update stable
215
205
rustup target add ${{ env.targets }} ${{ env.targets_ide }}
216
206
217
- - name : Cache Dependencies
218
- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
207
+ # - name: Cache Dependencies
208
+ # uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
219
209
220
210
- name : Check
221
211
run : |
@@ -306,7 +296,7 @@ jobs:
306
296
run : typos
307
297
308
298
conclusion :
309
- needs : [rust, rust-cross, typescript, typo-check, proc-macro-srv, miri]
299
+ needs : [rust, rust-cross, typescript, typo-check, proc-macro-srv, miri, rustfmt, analysis-stats ]
310
300
# We need to ensure this job does *not* get skipped if its dependencies fail,
311
301
# because a skipped job is considered a success by GitHub. So we have to
312
302
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
0 commit comments