Point CCACHE_DIR and the cache action at a fixed workspace directory instead; checkout cleans untracked files before the restore, so the ordering is safe.
Point CCACHE_DIR and the cache action at a fixed workspace directory instead; checkout cleans untracked files before the restore, so the ordering is safe.