Replace current caching solution with Rust Cache

This commit is contained in:
Vladimir Fomene
2023-03-08 13:49:54 +03:00
committed by Daniela Brozzoni
parent 0aaf420f6d
commit ab9242d10d
3 changed files with 8 additions and 33 deletions

View File

@@ -9,20 +9,14 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: nightly-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set default toolchain
run: rustup default nightly-2022-12-14
- name: Set profile
run: rustup set profile minimal
- name: Update toolchain
run: rustup update
- name: Rust Cache
uses: Swatinem/rust-cache@v2.2.1
- name: Build docs
run: cargo doc --no-deps
env: