mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46: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"
|
- "true"
|
||||||
- "false"
|
- "false"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
actions: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.ref }}
|
group: ${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
@@ -118,6 +122,19 @@ jobs:
|
|||||||
path: "*"
|
path: "*"
|
||||||
retention-days: 1
|
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:
|
create-emulation-root:
|
||||||
name: Create Emulation Root
|
name: Create Emulation Root
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
@@ -322,6 +339,17 @@ jobs:
|
|||||||
path: "build/${{matrix.preset}}/**/CTestTestfile.cmake"
|
path: "build/${{matrix.preset}}/**/CTestTestfile.cmake"
|
||||||
retention-days: 1
|
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:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
|
|||||||
Reference in New Issue
Block a user