File tree 4 files changed +40
-4
lines changed
4 files changed +40
-4
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,20 @@ jobs:
81
81
echo "::error Unknown architecture/build-type triplet mapping"
82
82
}
83
83
84
+ - name : Get latest vcpkg commit hash
85
+ shell : pwsh
86
+ run : |
87
+ echo "Fetching latest vcpkg commit hash..."
88
+ $commit = (git ls-remote https://github.com/microsoft/vcpkg.git HEAD | Select-String -Pattern '([a-f0-9]{40})').Matches.Value
89
+ $VCPKG_COMMIT_ID= $commit
90
+ Write-Host "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID"
91
+ echo "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" >> $env:GITHUB_ENV
92
+
84
93
- uses : lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
85
94
with :
86
95
runVcpkgInstall : true
87
96
vcpkgJsonGlob : ' **/build/vcpkg.json'
88
- vcpkgGitCommitId : ' ${{ vars .VCPKG_COMMIT_ID }}'
97
+ vcpkgGitCommitId : ' ${{ env .VCPKG_COMMIT_ID }}'
89
98
90
99
- name : ' Configure CMake'
91
100
working-directory : ${{ github.workspace }}
Original file line number Diff line number Diff line change @@ -121,11 +121,20 @@ jobs:
121
121
echo "::error Unknown architecture/build-type triplet mapping"
122
122
}
123
123
124
+ - name : Get latest vcpkg commit hash
125
+ shell : pwsh
126
+ run : |
127
+ echo "Fetching latest vcpkg commit hash..."
128
+ $commit = (git ls-remote https://github.com/microsoft/vcpkg.git HEAD | Select-String -Pattern '([a-f0-9]{40})').Matches.Value
129
+ $VCPKG_COMMIT_ID= $commit
130
+ Write-Host "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID"
131
+ echo "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" >> $env:GITHUB_ENV
132
+
124
133
- uses : lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
125
134
with :
126
135
runVcpkgInstall : true
127
136
vcpkgJsonGlob : ' **/build/vcpkg.json'
128
- vcpkgGitCommitId : ' ${{ vars .VCPKG_COMMIT_ID }}'
137
+ vcpkgGitCommitId : ' ${{ env .VCPKG_COMMIT_ID }}'
129
138
130
139
- name : ' Configure CMake'
131
140
working-directory : ${{ github.workspace }}
Original file line number Diff line number Diff line change @@ -93,11 +93,20 @@ jobs:
93
93
echo "::error Unknown architecture/build-type triplet mapping"
94
94
}
95
95
96
+ - name : Get latest vcpkg commit hash
97
+ shell : pwsh
98
+ run : |
99
+ echo "Fetching latest vcpkg commit hash..."
100
+ $commit = (git ls-remote https://github.com/microsoft/vcpkg.git HEAD | Select-String -Pattern '([a-f0-9]{40})').Matches.Value
101
+ $VCPKG_COMMIT_ID= $commit
102
+ Write-Host "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID"
103
+ echo "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" >> $env:GITHUB_ENV
104
+
96
105
- uses : lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
97
106
with :
98
107
runVcpkgInstall : true
99
108
vcpkgJsonGlob : ' **/build/vcpkg.json'
100
- vcpkgGitCommitId : ' ${{ vars .VCPKG_COMMIT_ID }}'
109
+ vcpkgGitCommitId : ' ${{ env .VCPKG_COMMIT_ID }}'
101
110
102
111
- name : ' Configure CMake'
103
112
working-directory : ${{ github.workspace }}
Original file line number Diff line number Diff line change @@ -37,11 +37,20 @@ jobs:
37
37
38
38
- uses : seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
39
39
40
+ - name : Get latest vcpkg commit hash
41
+ shell : pwsh
42
+ run : |
43
+ echo "Fetching latest vcpkg commit hash..."
44
+ $commit = (git ls-remote https://github.com/microsoft/vcpkg.git HEAD | Select-String -Pattern '([a-f0-9]{40})').Matches.Value
45
+ $VCPKG_COMMIT_ID= $commit
46
+ Write-Host "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID"
47
+ echo "VCPKG_COMMIT_ID=$VCPKG_COMMIT_ID" >> $env:GITHUB_ENV
48
+
40
49
- uses : lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
41
50
with :
42
51
runVcpkgInstall : true
43
52
vcpkgJsonGlob : ' **/build/vcpkg.json'
44
- vcpkgGitCommitId : ' ${{ vars .VCPKG_COMMIT_ID }}'
53
+ vcpkgGitCommitId : ' ${{ env .VCPKG_COMMIT_ID }}'
45
54
46
55
- name : ' Configure CMake'
47
56
working-directory : ${{ github.workspace }}
You can’t perform that action at this time.
0 commit comments