Remove old caches

This commit is contained in:
momo5502
2025-05-29 13:37:48 +02:00
parent 15a47c92cd
commit 61806bb9c4

View File

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