@@ -405,32 +405,29 @@ jobs:
405
405
# check `wgpu-core` with all features. This will also get `wgpu-hal` and `wgpu-types`.
406
406
cargo check --target ${{ matrix.target }} --all-features -p wgpu-core
407
407
408
- naga-minimal-versions :
408
+ # Check that the libraries build — but not that there are no warnings or that tests pass -
409
+ # with `-Zdirect-minimal-versions` which lowers all dependencies from the workspace packages
410
+ # to non-workspace packages to their minimum allowed version.
411
+ check-minimal-versions :
409
412
# runtime is normally 2 minutes
410
413
timeout-minutes : 10
411
414
412
- name : MSRV naga Minimal Versions
415
+ name : MSRV Minimal Versions
413
416
runs-on : ubuntu-22.04
417
+ env :
418
+ # Override flags to NOT include `-D warnings`, because warnings may be due to harmless problems in deps.
419
+ # Also, allow unexpected_cfgs because it is very common and spammy when using old deps.
420
+ RUSTFLAGS : -A unexpected_cfgs
414
421
415
422
steps :
416
423
- name : Checkout repo
417
424
uses : actions/checkout@v4
418
425
419
- - name : Install core MSRV toolchain
420
- run : |
421
- rustup toolchain install ${{ env.CORE_MSRV }} --no-self-update --profile=minimal --component clippy
422
- rustup override set ${{ env.CORE_MSRV }}
423
- cargo -V
424
-
425
- - name : Install Nightly toolchain
426
+ - name : Install toolchain
426
427
run : |
427
428
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal
428
- cargo +${{ env.REPO_MSRV }} -V
429
-
430
- - name : Install `cargo-hack`
431
- uses : taiki-e/install-action@v2
432
- with :
433
- tool : cargo-hack
429
+ rustup override set ${{ env.REPO_MSRV }}
430
+ cargo -V
434
431
435
432
- name : Disable debug symbols
436
433
shell : bash
@@ -445,16 +442,16 @@ jobs:
445
442
run : |
446
443
set -e
447
444
448
- cargo +${{ env.REPO_MSRV }} hack generate-lockfile --remove-dev-deps -Z minimal-versions -p naga -p naga-cli
445
+ cargo +${{ env.REPO_MSRV }} update -Zdirect- minimal-versions
449
446
env :
450
447
RUSTC_BOOTSTRAP : 1
451
448
452
- - name : Run Clippy
449
+ - name : Run cargo check
453
450
shell : bash
454
451
run : |
455
452
set -e
456
453
457
- cargo clippy --all-features -p naga -p naga-cli
454
+ cargo check --all-targets --all-features
458
455
459
456
wasm-test :
460
457
# runtime is normally 2 minutes
0 commit comments