CI: Restore cache action checks on inputs.ccache_path

These got removed by accident.
This commit is contained in:
Jelle Raaijmakers 2025-06-18 18:49:26 +02:00 committed by Jelle Raaijmakers
parent 573696b10f
commit 86c8dbbf90
2 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,7 @@ runs:
- name: 'Compiler Cache'
uses: actions/cache/restore@v4
id: 'ccache'
if: ${{ inputs.ccache_path != '' }}
with:
path: ${{ inputs.ccache_path }}
key: '"ccache" | "${{ inputs.os }}" | "${{ inputs.arch }}" | "${{ inputs.toolchain }}" | "${{ inputs.cache_key_extra }}" | "${{ inputs.ccache_version }}" | ${{ steps.date-stamp.outputs.timestamp }}'
@ -79,6 +80,7 @@ runs:
- name: 'Restore vcpkg cache'
uses: actions/cache/restore@v4
if: ${{ inputs.vcpkg_cache_path != '' }}
id: 'vcpkg'
with:
path: ${{ inputs.vcpkg_cache_path }}

View File

@ -38,6 +38,7 @@ runs:
- name: 'Compiler Cache'
uses: actions/cache/save@v4
if: ${{ inputs.ccache_path != '' }}
with:
path: ${{ inputs.ccache_path }}
key: ${{ inputs.ccache_primary_key }}
@ -50,6 +51,7 @@ runs:
- name: 'vcpkg binary cache'
uses: actions/cache/save@v4
if: ${{ inputs.vcpkg_cache_path != '' }}
with:
path: ${{ inputs.vcpkg_cache_path }}
key: ${{ inputs.vcpkg_cache_primary_key }}