diff --git a/.github/workflows/bvt.yml b/.github/workflows/bvt.yml index f27ee6be..b996a897 100644 --- a/.github/workflows/bvt.yml +++ b/.github/workflows/bvt.yml @@ -37,6 +37,9 @@ jobs: build_type: [x64-Release] arch: [amd64] + env: + VCPKG_COMMIT_ID: $(git rev-parse HEAD) + steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -81,11 +84,16 @@ jobs: echo "::error Unknown architecture/build-type triplet mapping" } + - name: Set environment variable inline + env: + VCPKG_COMMIT_ID: $(git ls-remote https://github.com/microsoft/vcpkg.git HEAD | awk '{print $1}') + run: echo "Latest vcpkg commit: $VCPKG_COMMIT_ID" + - uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11 with: runVcpkgInstall: true vcpkgJsonGlob: '**/build/vcpkg.json' - vcpkgGitCommitId: '${{ vars.VCPKG_COMMIT_ID }}' + vcpkgGitCommitId: '${{ env.VCPKG_COMMIT_ID }}' - name: 'Configure CMake' working-directory: ${{ github.workspace }}