File tree 1 file changed +62
-0
lines changed
1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,68 @@ jobs:
334
334
--package naga \
335
335
--all-features --no-deps --document-private-items
336
336
337
+ # Check that the libraries build — but not that there are no warnings or that tests pass -
338
+ # with `-Zdirect-minimal-versions` which lowers all dependencies from the workspace packages
339
+ # to non-workspace packages to their minimum allowed version.
340
+ check-minimal-versions :
341
+ timeout-minutes : 10
342
+
343
+ strategy :
344
+ fail-fast : false
345
+ matrix :
346
+ include :
347
+ # Windows
348
+ - name : Windows x86_64
349
+ os : windows-2022
350
+ target : x86_64-pc-windows-msvc
351
+
352
+ # MacOS
353
+ - name : MacOS x86_64
354
+ os : macos-14
355
+ target : x86_64-apple-darwin
356
+
357
+ # Linux
358
+ - name : Linux x86_64
359
+ os : ubuntu-22.04
360
+ target : x86_64-unknown-linux-gnu
361
+
362
+ name : Minimal dependency versions check ${{ matrix.name }}
363
+ runs-on : ${{ matrix.os }}
364
+
365
+ steps :
366
+ - name : Checkout repo
367
+ uses : actions/checkout@v4
368
+
369
+ - name : Install nightly toolchain
370
+ run : |
371
+ rustup toolchain install nightly --no-self-update --profile=minimal
372
+ rustup override set nightly
373
+ cargo -V
374
+
375
+ - name : Disable debug symbols
376
+ shell : bash
377
+ run : |
378
+ mkdir -p .cargo
379
+
380
+ cat <<EOF >> .cargo/config.toml
381
+ [profile.dev]
382
+ debug = false
383
+ EOF
384
+
385
+ - name : Caching
386
+ uses : Swatinem/rust-cache@v2
387
+ with :
388
+ key : clippy-${{ matrix.target }}-${{ matrix.kind }}-${{ env.CACHE_SUFFIX }}
389
+
390
+ - run : cargo update -Zdirect-minimal-versions
391
+
392
+ - name : Check
393
+ shell : bash
394
+ run : |
395
+ set -e
396
+
397
+ cargo check --target ${{ matrix.target }} ${{ matrix.extra-flags }} --all-targets --all-features
398
+
337
399
# We run minimal checks on the MSRV of the core crates, ensuring that
338
400
# its dependency tree does not cause issues for firefox.
339
401
#
You can’t perform that action at this time.
0 commit comments