Skip to content

Commit

Permalink
use correct cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Oct 11, 2024
1 parent 5a7310e commit f72a33d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,14 @@ 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-${{ inputs.preset }}-${{ hashFiles('./vcpkg.json') }}
key: deps-${{ steps.get_cache_key_preset.outputs.preset }}-${{ hashFiles('./vcpkg.json') }}
path: ./vcpkg_cache

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

0 comments on commit f72a33d

Please sign in to comment.