Change cache to use the whole target folder

Signed-off-by: trivernis <trivernis@protonmail.com>
actions
trivernis 4 years ago
parent 4219ab9583
commit f0a0e6c7a6
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -25,7 +25,6 @@ jobs:
~/.cargo/ ~/.cargo/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-cargo- ${{ runner.os }}-cargo-
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
@ -51,10 +50,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
/tmp/.buildx-cache target
target/**/build
target/**/deps
target/**/incremental
~/.cargo/ ~/.cargo/
key: ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }}
restore-keys: | restore-keys: |

Loading…
Cancel
Save