File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,66 @@ 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
+ env :
365
+ # override to NOT include -D warnings
366
+ RUSTFLAGS :
367
+
368
+ steps :
369
+ - name : Checkout repo
370
+ uses : actions/checkout@v4
371
+
372
+ - name : Install nightly toolchain
373
+ run : |
374
+ rustup toolchain install nightly --no-self-update --profile=minimal
375
+ rustup override set nightly
376
+ cargo -V
377
+
378
+ - name : Disable debug symbols
379
+ shell : bash
380
+ run : |
381
+ mkdir -p .cargo
382
+
383
+ cat <<EOF >> .cargo/config.toml
384
+ [profile.dev]
385
+ debug = false
386
+ EOF
387
+
388
+ - run : cargo update -Zdirect-minimal-versions
389
+
390
+ - name : Check
391
+ shell : bash
392
+ run : |
393
+ set -e
394
+
395
+ cargo check --target ${{ matrix.target }} ${{ matrix.extra-flags }} --all-targets --all-features
396
+
337
397
# We run minimal checks on the MSRV of the core crates, ensuring that
338
398
# its dependency tree does not cause issues for firefox.
339
399
#
You can’t perform that action at this time.
0 commit comments