mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 08:36:16 +00:00
Remove old caches
This commit is contained in:
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@@ -21,6 +21,10 @@ on:
|
||||
- "true"
|
||||
- "false"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -118,6 +122,19 @@ jobs:
|
||||
path: "*"
|
||||
retention-days: 1
|
||||
|
||||
|
||||
- name: Remove old cache
|
||||
uses: actions/github-script@v7.0.1
|
||||
continue-on-error: true
|
||||
with:
|
||||
script: |
|
||||
github.rest.actions.deleteActionsCacheByKey({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
key: "sccache dumper ${{ github.head_ref || github.ref_name }}",
|
||||
}).catch(e => {})
|
||||
|
||||
|
||||
create-emulation-root:
|
||||
name: Create Emulation Root
|
||||
runs-on: ${{ matrix.runner }}
|
||||
@@ -322,6 +339,17 @@ jobs:
|
||||
path: "build/${{matrix.preset}}/**/CTestTestfile.cmake"
|
||||
retention-days: 1
|
||||
|
||||
- name: Remove old cache
|
||||
uses: actions/github-script@v7.0.1
|
||||
continue-on-error: true
|
||||
with:
|
||||
script: |
|
||||
github.rest.actions.deleteActionsCacheByKey({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
key: "sccache ${{matrix.platform}} ${{matrix.configuration}} ${{ github.head_ref || github.ref_name }}",
|
||||
}).catch(e => {})
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ${{ matrix.runner }}
|
||||
|
||||
Reference in New Issue
Block a user