Skip to content

Commit

Permalink
include ImageVersion in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Oct 24, 2024
1 parent 9b319c5 commit b53c9d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ runs:
- uses: actions/cache@v4
if: runner.os != 'Linux'
with:
key: deps-${{ inputs.preset }}-${{ hashFiles('./vcpkg.json') }}
key: deps-${{ inputs.preset }}-${{ hashFiles('./vcpkg.json') }}-ImageVersion=${{ env.ImageVersion }}
path: ./vcpkg_cache

- uses: actions/cache@v4
if: runner.os == 'Linux'
with:
key: deps=${{ inputs.preset }}-${{ hashFiles('./vcpkg.json', '.github/actions/openziti-tunnel-build-action/gh-release/vcpkg-overlays/**/vcpkg.json') }}
key: deps-${{ inputs.preset }}-${{ hashFiles('./vcpkg.json', '.github/actions/openziti-tunnel-build-action/gh-release/vcpkg-overlays/**/vcpkg.json') }}-ImageVersion=${{ env.ImageVersion }}
path: ./vcpkg_cache

- uses: lukka/[email protected] # pin version to avoid failed glibc dependency on ubuntu 20 runners. go back to @latest when ubuntu 22+ is adopted for runner os.
Expand Down

0 comments on commit b53c9d5

Please sign in to comment.