forked from Kohi-den/extensions-source
ci: Added build cache to workflow
This commit is contained in:
parent
d09fc02078
commit
6b0de66cf6
2 changed files with 30 additions and 20 deletions
13
.github/workflows/build_pull_request.yml
vendored
13
.github/workflows/build_pull_request.yml
vendored
|
@ -13,7 +13,7 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CI_CHUNK_SIZE: 288
|
||||
CI_CHUNK_SIZE: 65
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
|
@ -75,6 +75,17 @@ jobs:
|
|||
with:
|
||||
cache-read-only: true
|
||||
|
||||
- name: Restore build cache
|
||||
uses: https://github.com/actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
src/**/build
|
||||
!src/**/build/outputs
|
||||
key: build-cache-${{ github.event.pull_request.base.sha }}-${{ matrix.chunk }}
|
||||
restore-keys: |
|
||||
build-cache-${{ github.event.pull_request.base.sha }}-
|
||||
build-cache-
|
||||
|
||||
- name: Build extensions (chunk ${{ matrix.chunk }})
|
||||
env:
|
||||
CI_CHUNK_NUM: ${{ matrix.chunk }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue