fix: Clean target cache and include UI files in cache key
This commit is contained in:
parent
85915863b3
commit
222e327259
1 changed files with 4 additions and 1 deletions
|
|
@ -46,11 +46,14 @@ jobs:
|
|||
~/.cargo/git
|
||||
~/.cache/sccache
|
||||
workspace/target
|
||||
key: ${{ runner.os }}-cargo-v2-debug-ui-${{ hashFiles('**/Cargo.lock') }}
|
||||
key: ${{ runner.os }}-cargo-v2-debug-ui-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('ui/**/*.html', 'ui/**/*.js', 'ui/**/*.css') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-v2-debug-ui-
|
||||
${{ runner.os }}-cargo-v2-debug-
|
||||
|
||||
- name: Clean old target
|
||||
run: rm -rf workspace/target || true
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue