Skip to content
Permalink
Browse files

fix cache hit by setting a unique key

  • Loading branch information
3nids authored and nyalldawson committed Feb 8, 2021
1 parent c0d9a67 commit 1a792666e15d8d1a1cf42d78fb5c0a37cab769b6
Showing with 7 additions and 5 deletions.
  1. +7 −5 .github/workflows/run-tests.yml
@@ -78,12 +78,13 @@ jobs:
if: github.event_name == 'pull_request'
with:
path: /home/runner/QGIS/.ccache
key: build-ccache-${{ github.head_ref }}
key: build-ccache-${{ github.head_ref }}-${{ github.sha }}
# The head_ref or source branch of the pull request in a workflow run.
# The base_ref or target branch of the pull request in a workflow run.
restore-keys: |
build-ccache-${{ github.base_ref }}
build-ccache-master
build-ccache-${{ github.head_ref }}-
build-ccache-${{ github.base_ref }}-
build-ccache-master-
- name: Prepare build cache for branch/tag
# use a fork of actions/cache@v2 to upload cache even when the build or test failed
@@ -92,9 +93,10 @@ jobs:
with:
path: /home/runner/QGIS/.ccache
# The branch or tag ref that triggered the workflow run. For branches this in the format refs/heads/<branch_name>, and for tags it is refs/tags/<tag_name>
key: build-ccache-${{ github.ref }}
key: build-ccache-${{ github.ref }}-${{ github.sha }}
restore-keys: |
build-ccache-master
build-ccache-${{ github.ref }}-
build-ccache-master-
- name: Compile QGIS
run: |

0 comments on commit 1a79266

Please sign in to comment.