@@ -38,16 +38,21 @@ jobs:
38
38
${{ runner.os }}-cargo-install-${{ hashFiles('**/Cargo.lock') }}-and-
39
39
${{ runner.os }}-cargo-install-
40
40
41
- - name : Compile HEAD
41
+ - name : Compile HEAD cargo-green
42
+ run : |
43
+ CARGO_TARGET_DIR=~/instmp cargo install --locked --force --path=./cargo-green
44
+ - name : Compile HEAD rustcbuildx
42
45
run : |
43
46
CARGO_TARGET_DIR=~/instmp cargo install --locked --force --path=./rustcbuildx
44
47
- run : ls -lha ~/instmp/release/
45
48
- run : ls -lha /home/runner/.cargo/bin/
46
49
47
50
- uses : actions/upload-artifact@v4
48
51
with :
49
- name : bin-artifact
50
- path : /home/runner/.cargo/bin/rustcbuildx
52
+ name : bin-artifacts
53
+ path : |
54
+ /home/runner/.cargo/bin/cargo-green
55
+ /home/runner/.cargo/bin/rustcbuildx
51
56
52
57
53
58
installs :
@@ -62,19 +67,20 @@ jobs:
62
67
- name : Retrieve saved bin
63
68
uses : actions/download-artifact@v4
64
69
with :
65
- name : bin-artifact
70
+ name : bin-artifacts
66
71
- run : | # TODO: whence https://github.com/actions/download-artifact/issues/236
67
- chmod +x ./rustcbuildx
72
+ chmod +x ./cargo-green ./ rustcbuildx
68
73
./rustcbuildx --version | grep rustcbuildx
69
74
mv ./rustcbuildx /home/runner/.cargo/bin/
75
+ mv ./cargo-green /home/runner/.cargo/bin/
76
+ cargo green --version
70
77
71
78
- uses : actions/checkout@v4
72
79
73
80
- name : cargo install net=ON cache=OFF remote=OFF jobs=$(nproc)
74
81
run : |
75
82
RUSTCBUILDX_LOG=debug \
76
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
77
- CARGO_TARGET_DIR=~/instst cargo -vv install --jobs=$(nproc) --locked --force --path=./rustcbuildx
83
+ CARGO_TARGET_DIR=~/instst cargo green -vv install --jobs=$(nproc) --locked --force --path=./rustcbuildx
78
84
79
85
80
86
audits :
@@ -89,11 +95,13 @@ jobs:
89
95
- name : Retrieve saved bin
90
96
uses : actions/download-artifact@v4
91
97
with :
92
- name : bin-artifact
98
+ name : bin-artifacts
93
99
- run : | # TODO: whence https://github.com/actions/download-artifact/issues/236
94
- chmod +x ./rustcbuildx
100
+ chmod +x ./cargo-green ./ rustcbuildx
95
101
./rustcbuildx --version | grep rustcbuildx
96
102
mv ./rustcbuildx /home/runner/.cargo/bin/
103
+ mv ./cargo-green /home/runner/.cargo/bin/
104
+ cargo green --version
97
105
98
106
- uses : actions/checkout@v4
99
107
@@ -122,8 +130,58 @@ jobs:
122
130
run : |
123
131
RUSTCBUILDX_LOG=debug \
124
132
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
125
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
126
- cargo -vv audit || \
133
+ cargo green -vv audit || \
134
+ cat logs.txt
135
+
136
+
137
+ udeps :
138
+ runs-on : ubuntu-latest
139
+ needs : bin
140
+ steps :
141
+ - uses : actions-rs/toolchain@v1
142
+ with :
143
+ profile : minimal
144
+ toolchain : nightly
145
+
146
+ - name : Retrieve saved bin
147
+ uses : actions/download-artifact@v4
148
+ with :
149
+ name : bin-artifacts
150
+ - run : | # TODO: whence https://github.com/actions/download-artifact/issues/236
151
+ chmod +x ./cargo-green ./rustcbuildx
152
+ ./rustcbuildx --version | grep rustcbuildx
153
+ mv ./rustcbuildx /home/runner/.cargo/bin/
154
+ mv ./cargo-green /home/runner/.cargo/bin/
155
+ cargo green --version
156
+
157
+ - uses : actions/checkout@v4
158
+
159
+ # Actually, the whole archives
160
+ - name : Cache `cargo fetch`
161
+ uses : actions/cache@v4
162
+ with :
163
+ path : |
164
+ ~/.cargo/registry/index/
165
+ ~/.cargo/registry/cache/
166
+ ~/.cargo/git/db/
167
+ key : cargo-deps-${{ hashFiles('**/Cargo.lock') }}
168
+ restore-keys : cargo-deps-
169
+
170
+ - name : Cache `cargo install`
171
+ uses : actions/cache@v4
172
+ with :
173
+ path : ~/cargo-udeps
174
+ key : ${{ runner.os }}-cargo-install-udeps
175
+
176
+ - name : Compile cargo-udeps
177
+ run : |
178
+ CARGO_TARGET_DIR=~/cargo-udeps cargo install --locked --force cargo-udeps
179
+
180
+ - name : cargo green +nightly udeps --all-targets net=ON cache=OFF remote=OFF
181
+ run : |
182
+ RUSTCBUILDX_LOG=debug \
183
+ RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
184
+ cargo green +nightly udeps --all-targets || \
127
185
cat logs.txt
128
186
129
187
@@ -139,11 +197,13 @@ jobs:
139
197
- name : Retrieve saved bin
140
198
uses : actions/download-artifact@v4
141
199
with :
142
- name : bin-artifact
200
+ name : bin-artifacts
143
201
- run : | # TODO: whence https://github.com/actions/download-artifact/issues/236
144
- chmod +x ./rustcbuildx
202
+ chmod +x ./cargo-green ./ rustcbuildx
145
203
./rustcbuildx --version | grep rustcbuildx
146
204
mv ./rustcbuildx /home/runner/.cargo/bin/
205
+ mv ./cargo-green /home/runner/.cargo/bin/
206
+ cargo green --version
147
207
148
208
- uses : actions/checkout@v4
149
209
@@ -163,8 +223,7 @@ jobs:
163
223
run : |
164
224
RUSTCBUILDX_LOG=debug \
165
225
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
166
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
167
- cargo -vv build --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
226
+ cargo green -vv build --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
168
227
169
228
- if : ${{ failure() || success() }}
170
229
run : cat logs.txt && echo >logs.txt
@@ -174,8 +233,7 @@ jobs:
174
233
run : |
175
234
RUSTCBUILDX_LOG=debug \
176
235
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
177
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
178
- cargo -vv build --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
236
+ cargo green -vv build --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
179
237
cat _ | grep Finished | grep 0...s
180
238
cat _ | grep Fresh
181
239
! cat _ | grep Compiling
@@ -197,11 +255,13 @@ jobs:
197
255
- name : Retrieve saved bin
198
256
uses : actions/download-artifact@v4
199
257
with :
200
- name : bin-artifact
258
+ name : bin-artifacts
201
259
- run : | # TODO: whence https://github.com/actions/download-artifact/issues/236
202
- chmod +x ./rustcbuildx
260
+ chmod +x ./cargo-green ./ rustcbuildx
203
261
./rustcbuildx --version | grep rustcbuildx
204
262
mv ./rustcbuildx /home/runner/.cargo/bin/
263
+ mv ./cargo-green /home/runner/.cargo/bin/
264
+ cargo green --version
205
265
206
266
- uses : actions/checkout@v4
207
267
@@ -221,8 +281,7 @@ jobs:
221
281
run : |
222
282
RUSTCBUILDX_LOG=debug \
223
283
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
224
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
225
- cargo -vv test --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
284
+ cargo green -vv test --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
226
285
227
286
- if : ${{ failure() || success() }}
228
287
run : cat logs.txt && echo >logs.txt
@@ -232,8 +291,7 @@ jobs:
232
291
run : |
233
292
RUSTCBUILDX_LOG=debug \
234
293
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
235
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
236
- cargo -vv test --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
294
+ cargo green -vv test --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
237
295
cat _ | grep Finished | grep 0...s
238
296
cat _ | grep Fresh
239
297
! cat _ | grep Compiling
@@ -255,11 +313,13 @@ jobs:
255
313
- name : Retrieve saved bin
256
314
uses : actions/download-artifact@v4
257
315
with :
258
- name : bin-artifact
316
+ name : bin-artifacts
259
317
- run : | # TODO: whence https://github.com/actions/download-artifact/issues/236
260
- chmod +x ./rustcbuildx
318
+ chmod +x ./cargo-green ./ rustcbuildx
261
319
./rustcbuildx --version | grep rustcbuildx
262
320
mv ./rustcbuildx /home/runner/.cargo/bin/
321
+ mv ./cargo-green /home/runner/.cargo/bin/
322
+ cargo green --version
263
323
264
324
- uses : actions/checkout@v4
265
325
@@ -279,8 +339,7 @@ jobs:
279
339
run : |
280
340
RUSTCBUILDX_LOG=debug \
281
341
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
282
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
283
- cargo -vv check --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
342
+ cargo green -vv check --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
284
343
285
344
- if : ${{ failure() || success() }}
286
345
run : cat logs.txt && echo >logs.txt
@@ -290,8 +349,7 @@ jobs:
290
349
run : |
291
350
RUSTCBUILDX_LOG=debug \
292
351
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
293
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
294
- cargo -vv check --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
352
+ cargo green -vv check --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
295
353
cat _ | grep Finished | grep 0...s
296
354
cat _ | grep Fresh
297
355
! cat _ | grep Compiling
@@ -315,11 +373,13 @@ jobs:
315
373
- name : Retrieve saved bin
316
374
uses : actions/download-artifact@v4
317
375
with :
318
- name : bin-artifact
376
+ name : bin-artifacts
319
377
- run : | # TODO: whence https://github.com/actions/download-artifact/issues/236
320
- chmod +x ./rustcbuildx
378
+ chmod +x ./cargo-green ./ rustcbuildx
321
379
./rustcbuildx --version | grep rustcbuildx
322
380
mv ./rustcbuildx /home/runner/.cargo/bin/
381
+ mv ./cargo-green /home/runner/.cargo/bin/
382
+ cargo green --version
323
383
324
384
- uses : actions/checkout@v4
325
385
@@ -339,8 +399,7 @@ jobs:
339
399
run : |
340
400
RUSTCBUILDX_LOG=debug \
341
401
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
342
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
343
- cargo -vv clippy --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
402
+ cargo green -vv clippy --jobs=$(nproc) --all-targets --all-features --locked --frozen --offline
344
403
345
404
- if : ${{ failure() || success() }}
346
405
run : cat logs.txt && echo >logs.txt
@@ -350,8 +409,7 @@ jobs:
350
409
run : |
351
410
RUSTCBUILDX_LOG=debug \
352
411
RUSTCBUILDX_LOG_PATH="$PWD"/logs.txt \
353
- RUSTC_WRAPPER=/home/runner/.cargo/bin/rustcbuildx \
354
- cargo -vv clippy --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
412
+ cargo green -vv clippy --jobs=1 --all-targets --all-features --locked --frozen --offline 2>&1 | tee _
355
413
cat _ | grep Finished | grep 0...s
356
414
! cat _ | grep 'Compiling|Compiling'
357
415
! cat _ | grep 'DEBUG|INFO|WARN|ERROR'
0 commit comments