|
31 | 31 | profile: minimal
|
32 | 32 | override: true
|
33 | 33 |
|
34 |
| - - name: Cache cargo registry cache |
35 |
| - uses: actions/cache@v1 |
36 |
| - with: |
37 |
| - path: ~/.cargo/registry/cache |
38 |
| - key: ${{ runner.os }}-cargo-registry-cache-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }} |
39 |
| - restore-key: | |
40 |
| - ${{ runner.os }}-cargo-registry-cache-${{ matrix.rust }}- |
41 |
| - ${{ runner.os }}-cargo-registry-cache- |
42 |
| -
|
43 |
| - - name: Cache cargo registry index |
44 |
| - uses: actions/cache@v1 |
45 |
| - with: |
46 |
| - path: ~/.cargo/registry/index |
47 |
| - key: ${{ runner.os }}-cargo-registry-index-${{ github.ref }}-${{ github.sha }} |
48 |
| - restore-key: | |
49 |
| - ${{ runner.os }}-cargo-registry-index-${{ github.ref }}- |
50 |
| - ${{ runner.os }}-cargo-registry-index-refs/heads/master- |
51 |
| -
|
52 |
| - # Uncomment the following if a git dependency is added to `Cargo.toml` |
53 |
| - #- name: Cache cargo git db |
54 |
| - # uses: actions/cache@v1 |
55 |
| - # with: |
56 |
| - # path: ~/.cargo/git/db |
57 |
| - # key: ${{ runner.os }}-cargo-git-db-${{ github.ref }}-${{ hashFiles('**/Cargo.toml') }} |
58 |
| - # restore-key: | |
59 |
| - # ${{ runner.os }}-cargo-git-db-${{ github.ref }}- |
60 |
| - # ${{ runner.os }}-cargo-git-db-refs/heads/master-${{ hashFiles('**/Cargo.toml') }} |
61 |
| - # ${{ runner.os }}-cargo-git-db-refs/heads/master- |
62 |
| - |
63 |
| - - name: Cache cargo build |
64 |
| - uses: actions/cache@v1 |
65 |
| - with: |
66 |
| - path: target |
67 |
| - key: ${{ runner.os }}-cargo-build-target-${{ matrix.rust }}-${{ github.ref }}-${{ hashFiles('**/Cargo.toml') }} |
68 |
| - restore-key: | |
69 |
| - ${{ runner.os }}-cargo-build-target-${{ matrix.rust }}-${{ github.ref }}- |
70 |
| - ${{ runner.os }}-cargo-build-target-${{ matrix.rust }}-refs/heads/master- |
71 |
| -
|
72 | 34 | - name: Install ${{ matrix.rust }} Rust
|
73 | 35 | run: |
|
74 | 36 | if [[ ! -d "$HOME/.cargo" || ! -d "$HOME/.rustup" ]]; then
|
|
85 | 47 | rustup component add rustfmt
|
86 | 48 | rustup component add clippy
|
87 | 49 |
|
88 |
| - - name: Cargo clean on new rustc version |
89 |
| - run: script/ci/cargo-clean-on-new-rustc-version.sh |
| 50 | + - uses: Swatinem/[email protected] |
90 | 51 |
|
91 | 52 | - name: Lint
|
92 | 53 | if: matrix.rust == 'stable'
|
|
0 commit comments