chore: enable vp task caching (#32729)

This commit is contained in:
andig 2026-08-11 13:53:25 +02:00 • committed by GitHub
parent 1aeaf3b020
commit fcac4f74c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View file

@ -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'