77 branches :
88 - release-*
99
10+ # Environment variables must be kept in sync with all workflows that defines them.
1011env :
1112 CARGO_TERM_COLOR : always
1213 CARGO_INCREMENTAL : 0
@@ -30,15 +31,20 @@ jobs:
3031 timeout-minutes : 30
3132 steps :
3233 - uses : actions/checkout@v4
33- - uses : actions/cache@v4
34+ - uses : actions/cache/restore @v4
3435 with :
36+ # key won't match, will rely on restore-keys
37+ key : ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
38+ # See .github/workflows/validation-jobs.yml for how keys are generated
39+ restore-keys : |
40+ ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
41+ ${{ runner.os }}-stable--
3542 path : |
3643 ~/.cargo/bin/
3744 ~/.cargo/registry/index/
3845 ~/.cargo/registry/cache/
3946 ~/.cargo/git/db/
4047 target/
41- key : ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
4248 - uses : dtolnay/rust-toolchain@stable
4349 - name : Install Linux dependencies
4450 uses : ./.github/actions/install-linux-deps
@@ -53,15 +59,20 @@ jobs:
5359 timeout-minutes : 30
5460 steps :
5561 - uses : actions/checkout@v4
56- - uses : actions/cache@v4
62+ - uses : actions/cache/restore @v4
5763 with :
64+ # key won't match, will rely on restore-keys
65+ key : ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
66+ # See .github/workflows/validation-jobs.yml for how keys are generated
67+ restore-keys : |
68+ ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
69+ ${{ runner.os }}-stable--
5870 path : |
5971 ~/.cargo/bin/
6072 ~/.cargo/registry/index/
6173 ~/.cargo/registry/cache/
6274 ~/.cargo/git/db/
6375 target/
64- key : ${{ runner.os }}-cargo-ci-${{ hashFiles('**/Cargo.toml') }}
6576 - uses : dtolnay/rust-toolchain@stable
6677 with :
6778 components : rustfmt, clippy
@@ -79,15 +90,20 @@ jobs:
7990 timeout-minutes : 60
8091 steps :
8192 - uses : actions/checkout@v4
82- - uses : actions/cache@v4
93+ - uses : actions/cache/restore @v4
8394 with :
95+ # key won't match, will rely on restore-keys
96+ key : ${{ runner.os }}-${{ env.NIGHTLY_TOOLCHAIN }}--${{ hashFiles('**/Cargo.toml') }}-
97+ # See .github/workflows/validation-jobs.yml for how keys are generated
98+ restore-keys : |
99+ ${{ runner.os }}-${{ env.NIGHTLY_TOOLCHAIN }}--${{ hashFiles('**/Cargo.toml') }}-
100+ ${{ runner.os }}-${{ env.NIGHTLY_TOOLCHAIN }}--
84101 path : |
85102 ~/.cargo/bin/
86103 ~/.cargo/registry/index/
87104 ~/.cargo/registry/cache/
88105 ~/.cargo/git/db/
89106 target/
90- key : ${{ runner.os }}-cargo-miri-${{ hashFiles('**/Cargo.toml') }}
91107 - uses : dtolnay/rust-toolchain@master
92108 with :
93109 toolchain : ${{ env.NIGHTLY_TOOLCHAIN }}
@@ -110,17 +126,20 @@ jobs:
110126 needs : ci
111127 steps :
112128 - uses : actions/checkout@v4
113- - uses : actions/cache@v4
129+ - uses : actions/cache/restore @v4
114130 with :
131+ # key won't match, will rely on restore-keys
132+ key : ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
133+ # See .github/workflows/validation-jobs.yml for how keys are generated
134+ restore-keys : |
135+ ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
136+ ${{ runner.os }}-stable--
115137 path : |
116138 ~/.cargo/bin/
117139 ~/.cargo/registry/index/
118140 ~/.cargo/registry/cache/
119141 ~/.cargo/git/db/
120142 target/
121- crates/bevy_ecs_compile_fail_tests/target/
122- crates/bevy_reflect_compile_fail_tests/target/
123- key : ${{ runner.os }}-cargo-check-compiles-${{ hashFiles('**/Cargo.toml') }}
124143 - uses : dtolnay/rust-toolchain@stable
125144 with :
126145 toolchain : stable
@@ -129,47 +148,55 @@ jobs:
129148 - name : Check Compile
130149 # See tools/ci/src/main.rs for the commands this runs
131150 run : cargo run -p ci -- compile
151+
132152 check-compiles-no-std :
133153 runs-on : ubuntu-latest
134154 timeout-minutes : 30
135155 needs : ci
136156 steps :
137157 - uses : actions/checkout@v4
138- - uses : actions/cache@v4
158+ - uses : actions/cache/restore @v4
139159 with :
160+ # key won't match, will rely on restore-keys
161+ key : ${{ runner.os }}-stable-x86_64-unknown-none-${{ hashFiles('**/Cargo.toml') }}-
162+ # See .github/workflows/validation-jobs.yml for how keys are generated
163+ restore-keys : |
164+ ${{ runner.os }}-stable-x86_64-unknown-none-${{ hashFiles('**/Cargo.toml') }}-
165+ ${{ runner.os }}-stable-x86_64-unknown-none-
140166 path : |
141167 ~/.cargo/bin/
142168 ~/.cargo/registry/index/
143169 ~/.cargo/registry/cache/
144170 ~/.cargo/git/db/
145171 target/
146- crates/bevy_ecs_compile_fail_tests/target/
147- crates/bevy_reflect_compile_fail_tests/target/
148- key : ${{ runner.os }}-cargo-check-compiles-no-std-${{ hashFiles('**/Cargo.toml') }}
149172 - uses : dtolnay/rust-toolchain@stable
150173 with :
151174 targets : x86_64-unknown-none
152175 - name : Install Linux dependencies
153176 uses : ./.github/actions/install-linux-deps
154177 - name : Check Compile
155178 run : cargo check -p bevy --no-default-features --features default_no_std --target x86_64-unknown-none
179+
156180 check-compiles-no-std-portable-atomic :
157181 runs-on : ubuntu-latest
158182 timeout-minutes : 30
159183 needs : ci
160184 steps :
161185 - uses : actions/checkout@v4
162- - uses : actions/cache@v4
186+ - uses : actions/cache/restore @v4
163187 with :
188+ # key won't match, will rely on restore-keys
189+ key : ${{ runner.os }}-stable-thumbv6m-none-eabi-${{ hashFiles('**/Cargo.toml') }}-
190+ # See .github/workflows/validation-jobs.yml for how keys are generated
191+ restore-keys : |
192+ ${{ runner.os }}-stable-thumbv6m-none-eabi-${{ hashFiles('**/Cargo.toml') }}-
193+ ${{ runner.os }}-stable-thumbv6m-none-eabi-
164194 path : |
165195 ~/.cargo/bin/
166196 ~/.cargo/registry/index/
167197 ~/.cargo/registry/cache/
168198 ~/.cargo/git/db/
169199 target/
170- crates/bevy_ecs_compile_fail_tests/target/
171- crates/bevy_reflect_compile_fail_tests/target/
172- key : ${{ runner.os }}-cargo-check-compiles-no-std-portable-atomic-${{ hashFiles('**/Cargo.toml') }}
173200 - uses : dtolnay/rust-toolchain@stable
174201 with :
175202 targets : thumbv6m-none-eabi
@@ -184,17 +211,20 @@ jobs:
184211 needs : ci
185212 steps :
186213 - uses : actions/checkout@v4
187- - uses : actions/cache@v4
214+ - uses : actions/cache/restore @v4
188215 with :
216+ # key won't match, will rely on restore-keys
217+ key : ${{ runner.os }}-stable-x86_64-unknown-none-${{ hashFiles('**/Cargo.toml') }}-
218+ # See .github/workflows/validation-jobs.yml for how keys are generated
219+ restore-keys : |
220+ ${{ runner.os }}-stable-x86_64-unknown-none-${{ hashFiles('**/Cargo.toml') }}-
221+ ${{ runner.os }}-stable-x86_64-unknown-none-
189222 path : |
190223 ~/.cargo/bin/
191224 ~/.cargo/registry/index/
192225 ~/.cargo/registry/cache/
193226 ~/.cargo/git/db/
194227 target/
195- crates/bevy_ecs_compile_fail_tests/target/
196- crates/bevy_reflect_compile_fail_tests/target/
197- key : ${{ runner.os }}-cargo-check-compiles-no-std-examples-${{ hashFiles('**/Cargo.toml') }}
198228 - uses : dtolnay/rust-toolchain@stable
199229 with :
200230 targets : x86_64-unknown-none
@@ -209,15 +239,20 @@ jobs:
209239 needs : build
210240 steps :
211241 - uses : actions/checkout@v4
212- - uses : actions/cache@v4
242+ - uses : actions/cache/restore @v4
213243 with :
244+ # key won't match, will rely on restore-keys
245+ key : ${{ runner.os }}-stable-wasm32-unknown-unknown-${{ hashFiles('**/Cargo.toml') }}-
246+ # See .github/workflows/validation-jobs.yml for how keys are generated
247+ restore-keys : |
248+ ${{ runner.os }}-stable-wasm32-unknown-unknown-${{ hashFiles('**/Cargo.toml') }}-
249+ ${{ runner.os }}-stable-wasm32-unknown-unknown-
214250 path : |
215251 ~/.cargo/bin/
216252 ~/.cargo/registry/index/
217253 ~/.cargo/registry/cache/
218254 ~/.cargo/git/db/
219255 target/
220- key : ubuntu-assets-cargo-build-wasm-stable-${{ hashFiles('**/Cargo.toml') }}
221256 - uses : dtolnay/rust-toolchain@stable
222257 with :
223258 target : wasm32-unknown-unknown
@@ -230,15 +265,20 @@ jobs:
230265 needs : build
231266 steps :
232267 - uses : actions/checkout@v4
233- - uses : actions/cache@v4
268+ - uses : actions/cache/restore @v4
234269 with :
270+ # key won't match, will rely on restore-keys
271+ key : ${{ runner.os }}-${{ env.NIGHTLY_TOOLCHAIN }}-wasm32-unknown-unknown-${{ hashFiles('**/Cargo.toml') }}-
272+ # See .github/workflows/validation-jobs.yml for how keys are generated
273+ restore-keys : |
274+ ${{ runner.os }}-${{ env.NIGHTLY_TOOLCHAIN }}-wasm32-unknown-unknown-${{ hashFiles('**/Cargo.toml') }}-
275+ ${{ runner.os }}-${{ env.NIGHTLY_TOOLCHAIN }}-wasm32-unknown-unknown-
235276 path : |
236277 ~/.cargo/bin/
237278 ~/.cargo/registry/index/
238279 ~/.cargo/registry/cache/
239280 ~/.cargo/git/db/
240281 target/
241- key : ubuntu-assets-cargo-build-wasm-nightly-${{ hashFiles('**/Cargo.toml') }}
242282 - uses : dtolnay/rust-toolchain@master
243283 with :
244284 toolchain : ${{ env.NIGHTLY_TOOLCHAIN }}
@@ -260,7 +300,7 @@ jobs:
260300 # Full git history is needed to get a proper list of changed files within `super-linter`
261301 fetch-depth : 0
262302 - name : Run Markdown Lint
263- uses : super-linter/super-linter/slim@v7.4 .0
303+ uses : super-linter/super-linter/slim@v8.0 .0
264304 env :
265305 MULTI_STATUS : false
266306 VALIDATE_ALL_CODEBASE : false
@@ -309,15 +349,20 @@ jobs:
309349 timeout-minutes : 30
310350 steps :
311351 - uses : actions/checkout@v4
312- - uses : actions/cache@v4
352+ - uses : actions/cache/restore @v4
313353 with :
354+ # key won't match, will rely on restore-keys
355+ key : ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
356+ # See .github/workflows/validation-jobs.yml for how keys are generated
357+ restore-keys : |
358+ ${{ runner.os }}-stable--${{ hashFiles('**/Cargo.toml') }}-
359+ ${{ runner.os }}-stable--
314360 path : |
315361 ~/.cargo/bin/
316362 ~/.cargo/registry/index/
317363 ~/.cargo/registry/cache/
318364 ~/.cargo/git/db/
319365 target/
320- key : ${{ runner.os }}-check-doc-${{ hashFiles('**/Cargo.toml') }}
321366 - uses : dtolnay/rust-toolchain@stable
322367 - name : Install Linux dependencies
323368 uses : ./.github/actions/install-linux-deps
@@ -412,15 +457,6 @@ jobs:
412457 needs : build
413458 steps :
414459 - uses : actions/checkout@v4
415- - uses : actions/cache@v4
416- with :
417- path : |
418- ~/.cargo/bin/
419- ~/.cargo/registry/index/
420- ~/.cargo/registry/cache/
421- ~/.cargo/git/db/
422- target/
423- key : ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.toml') }}
424460 - uses : dtolnay/rust-toolchain@stable
425461 - name : get MSRV
426462 id : msrv
@@ -430,6 +466,20 @@ jobs:
430466 - uses : dtolnay/rust-toolchain@master
431467 with :
432468 toolchain : ${{ steps.msrv.outputs.msrv }}
469+ - uses : actions/cache/restore@v4
470+ with :
471+ # key won't match, will rely on restore-keys
472+ key : ${{ runner.os }}-${{ steps.msrv.outputs.msrv }}--${{ hashFiles('**/Cargo.toml') }}-
473+ # See .github/workflows/validation-jobs.yml for how keys are generated
474+ restore-keys : |
475+ ${{ runner.os }}-${{ steps.msrv.outputs.msrv }}--${{ hashFiles('**/Cargo.toml') }}-
476+ ${{ runner.os }}-${{ steps.msrv.outputs.msrv }}--
477+ path : |
478+ ~/.cargo/bin/
479+ ~/.cargo/registry/index/
480+ ~/.cargo/registry/cache/
481+ ~/.cargo/git/db/
482+ target/
433483 - name : Install Linux dependencies
434484 uses : ./.github/actions/install-linux-deps
435485 - name : Run cargo check
0 commit comments