From 6fcae802fbcb5ed2b6b920b77e8ed9b54f10e9de Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Sat, 5 Dec 2020 23:47:23 +0800 Subject: [PATCH] ci: change cargo cache path --- .github/workflows/rust.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fa9b139..11f1e71 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,13 +22,13 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Cache Cargo build + - name: Cache Cargo uses: actions/cache@v1 with: - path: target/ - key: ${{ matrix.os }}-stable-target-v1 + path: ~/.cargo + key: ${{ matrix.os }}-stable-cargo-v1 restore-keys: | - ${{ matrix.os }}-stable-target-v1 + ${{ matrix.os }}-stable-cargo-v1 - name: Setup toolchain uses: actions-rs/toolchain@v1 with: @@ -60,13 +60,13 @@ jobs: - armv7-unknown-linux-gnueabihf steps: - uses: actions/checkout@v2 - - name: Cache Cargo build + - name: Cache Cargo uses: actions/cache@v1 with: - path: target/ - key: ${{ matrix.target }}-stable-target-v1 + path: ~/.cargo + key: ${{ matrix.target }}-stable-cargo-v1 restore-keys: | - ${{ matrix.target }}-stable-target-v1 + ${{ matrix.target }}-stable-cargo-v1 - name: Setup toolchain uses: actions-rs/toolchain@v1 with: