GHActions: Clean up old caches

This commit is contained in:
TellowKrinkle
2026-03-17 11:12:39 -04:00
committed by Ty
parent d856f3f5bd
commit c80866ab5c
3 changed files with 20 additions and 6 deletions
@@ -91,6 +91,12 @@ jobs:
run: |
flatpak-builder-lint manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
- name: Clean Caches
uses: PCSX2/[email protected]
with:
items: '[{"key": " flatpak", "count": 1}]'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Flatpak (beta)
if: ${{ inputs.stableBuild == false || inputs.stableBuild == 'false' }}
uses: flatpak/flatpak-github-actions/flatpak-builder@92ae9851ad316786193b1fd3f40c4b51eb5cb101
+8 -6
View File
@@ -27,10 +27,6 @@ on:
required: false
type: boolean
default: false
detail:
required: false
type: string
default: ""
patchesUrl:
required: false
type: string
@@ -86,6 +82,12 @@ jobs:
PR_SHA: ${{ github.event.pull_request.head.sha }}
run: ./.github/workflows/scripts/common/name-artifacts.sh
- name: Clean Caches
uses: PCSX2/[email protected]
with:
items: '[{"key": " deps", "count": 4}, {"key": " ccache", "count": 1}]'
token: ${{ secrets.GITHUB_TOKEN }}
# -- SETUP CCACHE - https://cristianadam.eu/20200113/speeding-up-c-plus-plus-github-actions-using-ccache/
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
@@ -95,8 +97,8 @@ jobs:
uses: actions/cache@v5
with:
path: .ccache
key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} ${{ inputs.detail }} ccache ${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} ${{ inputs.detail }} ccache
key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} ccache ${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} ccache
- name: Install Packages
run: |
+6
View File
@@ -89,6 +89,12 @@ jobs:
brew install ccache nasm
fi
- name: Clean Caches
uses: PCSX2/[email protected]
with:
items: '[{"key": " deps", "count": 4}, {"key": " ccache", "count": 1}]'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Dependencies
id: cache-deps
uses: actions/cache@v5