[ci] setup rust cache
@@ -23,18 +23,9 @@ jobs:
- name: Rust setup
run: |
bash ./scripts/setup/dev_setup.sh
- - name: Cache cargo registry
- uses: actions/cache@v2
- with:
- path: |
- ~/.cargo/registry/index/
- ~/.cargo/registry/cache/
- ~/.cargo/git/db/
- key: ${{ runner.os }}-cargo-testcache-${{ secrets.CACHE_RESET_KEY }}-${{ hashFiles('**/Cargo.lock') }}
- restore-keys: |
- ${{ runner.os }}-cargo-testcache-${{ secrets.CACHE_RESET_KEY }}-
- ${{ runner.os }}-cargo-testcache-
- ${{ runner.os }}-cargo-
+
+ - name: Cache Rust
+ uses: Swatinem/rust-cache@v1
- name: Run test
uses: actions-rs/cargo@v1
