Skip to content

[CI] GitHub Actions cache for _deps should be automatically invalidated when there's source changes to CMakeLists.txt, ci.yml, etc. #16

@saki7

Description

@saki7

Currently the only "key" included in our cache setting is basically limited to the toolchain's version numbers:

key: deps-${{ matrix.os.name }}-${{ matrix.os.version }}-${{ matrix.compiler.toolset }}-${{ steps.env-info.outputs.compiler-full-version }}-${{ matrix.cpp_version.name }}-${{ matrix.build_type.name }}

I experienced several times where invalid cache is persistent in some pull requests, resulting in a complete rebuild of Catch2 even that the CI "finds" the (invalid) cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIBuild system issuesbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions