|
8 | 8 | runs-on: ubuntu-latest |
9 | 9 | steps: |
10 | 10 | - uses: actions/checkout@v4 |
| 11 | + - uses: dtolnay/rust-toolchain@nightly |
11 | 12 | - run: cargo check --workspace --all-targets --all-features |
12 | 13 |
|
13 | 14 | check_msrv: |
14 | | - name: Check ash and ash-window MSRV (1.69.0) |
| 15 | + name: Check ash and ash-window MSRV (1.76.0) |
15 | 16 | runs-on: ubuntu-latest |
16 | 17 | steps: |
17 | 18 | - uses: actions/checkout@v4 |
18 | | - - uses: dtolnay/rust-toolchain@1.69.0 |
| 19 | + - uses: dtolnay/rust-toolchain@nightly |
19 | 20 | - run: cargo check -p ash -p ash-rewrite -p ash-window -p ash-examples --all-features |
20 | 21 |
|
21 | 22 | # TODO: add a similar job for the rewrite once that generates code |
|
29 | 30 | run: git submodule update --recursive --init --force --checkout |
30 | 31 | - name: Run generator |
31 | 32 | run: cargo run -p generator |
| 33 | + - uses: dtolnay/rust-toolchain@nightly |
| 34 | + with: |
| 35 | + components: rustfmt |
| 36 | + - run: cargo fmt |
32 | 37 | - name: Diff autogen result |
33 | 38 | run: test -z "$(git status --porcelain)" || (echo "::error::Generated files are different, please regenerate with cargo run -p generator!"; git diff; false) |
34 | 39 |
|
|
39 | 44 | - name: Install Vulkan loader |
40 | 45 | run: sudo apt-get install libvulkan-dev |
41 | 46 | - uses: actions/checkout@v4 |
| 47 | + - uses: dtolnay/rust-toolchain@nightly |
42 | 48 | - name: Test all targets |
43 | 49 | run: cargo test --workspace --all-targets |
44 | 50 | - name: Test docs |
|
49 | 55 | runs-on: ubuntu-latest |
50 | 56 | steps: |
51 | 57 | - uses: actions/checkout@v4 |
| 58 | + - uses: dtolnay/rust-toolchain@nightly |
| 59 | + with: |
| 60 | + components: rustfmt |
52 | 61 | - run: cargo fmt --all -- --check |
53 | 62 |
|
54 | 63 | clippy: |
|
63 | 72 | - aarch64-apple-ios |
64 | 73 | steps: |
65 | 74 | - uses: actions/checkout@v4 |
66 | | - - name: Add Rust target ${{ matrix.target }} |
67 | | - run: rustup target add ${{ matrix.target }} |
| 75 | + - uses: dtolnay/rust-toolchain@nightly |
| 76 | + with: |
| 77 | + targets: ${{ matrix.target }} |
| 78 | + components: clippy |
68 | 79 | - name: Clippy lint without features |
69 | 80 | # Only test the core ash, ash-rewrite and ash-window crate, where features reside. |
70 | 81 | # The examples crate would otherwise enable all default features again, |
|
84 | 95 | runs-on: ubuntu-latest |
85 | 96 | steps: |
86 | 97 | - uses: actions/checkout@v4 |
| 98 | + - uses: dtolnay/rust-toolchain@nightly |
87 | 99 | - name: Document all crates |
88 | 100 | env: |
89 | 101 | RUSTDOCFLAGS: -Dwarnings |
|
0 commit comments