Skip to content

Commit d29aa34

Browse files
committed
test of workflow
1 parent ff42cd0 commit d29aa34

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/bvt.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
build_type: [x64-Release]
3838
arch: [amd64]
3939

40+
env:
41+
VCPKG_COMMIT_ID: 'your_commit_hash'
42+
4043
steps:
4144
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4245

@@ -80,12 +83,14 @@ jobs:
8083
{
8184
echo "::error Unknown architecture/build-type triplet mapping"
8285
}
86+
- name: Get latest vcpkg commit hash
87+
run: echo "VCPKG_COMMIT_ID=$(git rev-parse HEAD | awk '{print $1}')" >> $GITHUB_ENV
8388

8489
- uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
8590
with:
8691
runVcpkgInstall: true
8792
vcpkgJsonGlob: '**/build/vcpkg.json'
88-
vcpkgGitCommitId: '${{ vars.VCPKG_COMMIT_ID }}'
93+
vcpkgGitCommitId: '${{ env.VCPKG_COMMIT_ID }}'
8994

9095
- name: 'Configure CMake'
9196
working-directory: ${{ github.workspace }}

0 commit comments

Comments
 (0)