Skip to content

Commit

Permalink
simplify cache id
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 2, 2024
1 parent 103d7fb commit ff4e291
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: ${{ env.CCACHE_DIR }}
key: build-ccache-mac-${{ github.base_ref || github.ref }}
key: build-ccache-mac-${{ github.event.pull_request.base.ref || github.ref_name }}
restore-keys: |
build-ccache-mac-refs/heads/master
Expand Down Expand Up @@ -135,4 +135,4 @@ jobs:
if: ${{ github.event_name == 'push' }}
with:
path: ${{ env.CCACHE_DIR }}
key: build-ccache-mac-${{ github.ref }}
key: build-ccache-mac-${{ github.ref_name }}
4 changes: 2 additions & 2 deletions .github/workflows/mingw-w64-msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: build
key: build-ccache-mingw64-msys2-${{ github.base_ref || github.ref }}
key: build-ccache-mingw64-msys2-${{ github.event.pull_request.base.ref || github.ref_name }}
restore-keys: |
build-ccache-mingw64-msys2-refs/heads/master
Expand Down Expand Up @@ -91,4 +91,4 @@ jobs:
if: ${{ github.event_name == 'push' }}
with:
path: build
key: build-ccache-mingw64-msys2-${{ github.ref }}
key: build-ccache-mingw64-msys2-${{ github.ref_name }}
4 changes: 2 additions & 2 deletions .github/workflows/mingw64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
uses: actions/cache/restore@v3
with:
path: /w/.ccache/QGIS
key: build-ccache-mingw64-${{ github.base_ref || github.ref }}
key: build-ccache-mingw64-${{ github.event.pull_request.base.ref || github.ref_name }}
restore-keys: |
build-ccache-mingw64-refs/heads/master-
Expand All @@ -79,7 +79,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
with:
path: /w/.ccache/QGIS
key: build-ccache-mingw64-${{ github.ref }}
key: build-ccache-mingw64-${{ github.ref_name }}

- name: Create Portable zip
run: |
Expand Down

0 comments on commit ff4e291

Please sign in to comment.