Skip to content

Commit

Permalink
Add vcpkg-cache-hash output (#17)
Browse files Browse the repository at this point in the history
* Add vcpkg-cache-hash output

* Add vcpkg-cache-hash output
  • Loading branch information
johnwason authored May 30, 2023
1 parent 1f721e7 commit 4a4f294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ outputs:
vcpkg-cmake-config:
description: Configure options for cmake to use vcpkg
value: ${{ steps.vcpkg-cmake-config.outputs.vcpkg-cmake-config }}
vcpkg-cache-hash:
description: Hash of the vcpkg cache key
value: ${{ steps.vcpkg-cmake-config.outputs.vcpkg-cache-hash }}
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -171,3 +174,4 @@ runs:
id: vcpkg-cmake-config
run: |
echo "vcpkg-cmake-config=-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${{ inputs.triplet }} -DVCPKG_MANIFEST_MODE=OFF" >> $GITHUB_OUTPUT
echo "vcpkg-cache-hash=${{ hashFiles('vcpkg/vcpkg_dry_run.txt') }}-${{ inputs.cache-key }}" >> $GITHUB_OUTPUT

0 comments on commit 4a4f294

Please sign in to comment.