change platform cache keys

This commit is contained in:
neil 2022-12-27 07:56:09 +08:00
parent 708d84a658
commit 3e1aaab8f1

View file

@ -157,7 +157,7 @@ jobs:
with: with:
# The prefix cache key, this can be changed to start a new cache manually. # The prefix cache key, this can be changed to start a new cache manually.
# default: "v0-rust" # default: "v0-rust"
prefix-key: ${{ matrix.platform.os }} prefix-key: ${{ matrix.platform.name }}
shared-key: ci shared-key: ci
cache-targets: false cache-targets: false
- name: install app dependencies - name: install app dependencies
@ -168,9 +168,9 @@ jobs:
with: with:
path: | path: |
./modules/gui/src-tauri/target ./modules/gui/src-tauri/target
key: ${{ matrix.platform }}-build-target key: ${{ matrix.platform.name }}-build-target
restore-keys: | restore-keys: |
${{ matrix.platform }}-build-target ${{ matrix.platform.name }}-build-target
- name: test build tauri - name: test build tauri
run: pnpm --filter gui tauri build run: pnpm --filter gui tauri build