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: