chore: enable vp task caching (#32729)
This commit is contained in:
parent
1aeaf3b020
commit
fcac4f74c2
2 changed files with 22 additions and 0 deletions
17
.github/workflows/default.yml
vendored
17
.github/workflows/default.yml
vendored
|
|
@ -132,6 +132,15 @@ jobs:
|
|||
- name: Install
|
||||
run: make install-ui
|
||||
|
||||
- name: Restore vp task cache
|
||||
id: vp-cache
|
||||
uses: actions/cache/restore@v6
|
||||
with:
|
||||
path: node_modules/.vite/task-cache
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-vp-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ runner.arch }}-vp-
|
||||
|
||||
- name: OpenAPI
|
||||
# backport release tags may not have the openapi target yet
|
||||
run: if grep -q '^openapi' Makefile; then make openapi; fi
|
||||
|
|
@ -148,6 +157,14 @@ jobs:
|
|||
- name: Build UI
|
||||
run: make ui
|
||||
|
||||
- name: Save vp task cache
|
||||
# avoid cache thrashing by nightly and pull requests
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
uses: actions/cache/save@v6
|
||||
with:
|
||||
path: node_modules/.vite/task-cache
|
||||
key: ${{ steps.vp-cache.outputs.cache-primary-key }}
|
||||
|
||||
- name: Cache dist
|
||||
# avoid cache thrashing by nightly
|
||||
if: github.event_name == 'push' || github.event_name == 'pull_request'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue