Skip to content

Commit

Permalink
get vcpkg commit id
Browse files Browse the repository at this point in the history
  • Loading branch information
kvnp committed Dec 25, 2023
1 parent 22f6d7a commit 41fa25c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-windows-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
with:
repository: "microsoft/vcpkg"
path: "vcpkg"
- name: Retrieve version
run: |
echo "GIT_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
id: version

- uses: lukka/get-cmake@latest
- name: dir
run: find $RUNNER_WORKSPACE
Expand All @@ -41,6 +46,7 @@ jobs:
# This one is not needed, as it is the default value anyway.
# vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgJsonGlob: '**/vcpkg.json'
vcpkgGitCommitId: '${{ steps.version.outputs.GIT_COMMIT }}'

- name: List $RUNNER_WORKSPACE before build
run: find $RUNNER_WORKSPACE
Expand Down

0 comments on commit 41fa25c

Please sign in to comment.