Skip to content

Commit

Permalink
use unique key for cpack caches
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Oct 11, 2024
1 parent f72a33d commit d990402
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/cpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,9 @@ jobs:
run: |
mv -v ./.github/actions/openziti-tunnel-build-action/${DISTRO_LABEL}/* ./.github/actions/openziti-tunnel-build-action/
- name: get cache key
id: get_cache_key_preset
shell: bash
run: echo "preset=$(echo ${{ matrix.arch.cmake }} | sed -e 's/^ci-//')" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
with:
key: deps-${{ steps.get_cache_key_preset.outputs.preset }}-${{ hashFiles('./vcpkg.json') }}
key: deps-cpack-${{ matrix.arch.rpm }}-${{ matrix.distro.name }}-${{ matrix.distro.version }}-${{ hashFiles('./vcpkg.json') }}
path: ./vcpkg_cache

# entrypoint.sh uses the value of arch to select the cmake preset
Expand Down

0 comments on commit d990402

Please sign in to comment.