From 86c8dbbf902d5c84bdc90cd35d19cc167d5848bd Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Wed, 18 Jun 2025 18:49:26 +0200 Subject: [PATCH] CI: Restore cache action checks on `inputs.ccache_path` These got removed by accident. --- .github/actions/cache-restore/action.yml | 2 ++ .github/actions/cache-save/action.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/actions/cache-restore/action.yml b/.github/actions/cache-restore/action.yml index 858ceae0188..adea9a2ccdb 100644 --- a/.github/actions/cache-restore/action.yml +++ b/.github/actions/cache-restore/action.yml @@ -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 }} diff --git a/.github/actions/cache-save/action.yml b/.github/actions/cache-save/action.yml index b522c4d80e7..1100ef15b71 100644 --- a/.github/actions/cache-save/action.yml +++ b/.github/actions/cache-save/action.yml @@ -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 }}