Skip to content

Cache is no longer updated when set with save as false #345

@Naros

Description

@Naros

Our CI pipeline utilizes a combination of actions/cache and this action to manage the restoration and saving of various aspects of our workspace, utilizing the .ccache folder. Since we only need to have one save/restore, we use actions/cache for this, but rely on using this action to expedite the build of our project with ccache that is provided, like this:

    # Installs ccache
    - name: Install ccache
      uses: hendrikmuhs/[email protected]
      with:
        key: ${{ inputs.cache-name }}|${{ github.ref_name }}|${{ github.sha }}
        restore: false
        save: false
        append-timestamp: false
        # Explicitly disable job statistics summary
        job-summary: ""

Unfortunately, in the latest 1.2.18, this action treats the cache as read-only, no longer updating the cache files across builds, thus making the entire pipeline experience 100% cache misses. While I understand the intent behind treating the cache as read-only with save set to false, this approach is overly restrictive and prevents combining with other actions.

Therefore, I would suggest that the cache should be treated as read-only; then, there should be a separate toggle to convey this, rather than trying to infer it from the fact that save is set to false. Otherwise unfortunately our pipelines are stuck at 1.2.17 :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions