Skip to content

Commit

Permalink
fix: solution commit id
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Feb 21, 2024
1 parent 39d03ba commit c9a4f40
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build-windows-solution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@main

- name: Restore artifacts and install vcpkg
id: vcpkg-step
- name: Install vcpkg
run: |
$json=Get-Content vcpkg.json -Raw | ConvertFrom-Json
$vcpkgCommitId=$json.'builtin-baseline'
$vcpkgJson = Get-Content .\vcpkg.json -Raw | ConvertFrom-Json
$vcpkgCommitId = $vcpkgJson.'builtin-baseline'.Trim()
Write-Host "vcpkg commit ID: $vcpkgCommitId"
echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Get vcpkg commit id from vcpkg.json
uses: lukka/run-vcpkg@main
with:
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git"
vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }}
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
git checkout $vcpkgCommitId
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
- name: Print useful paths
run: |
Expand Down

0 comments on commit c9a4f40

Please sign in to comment.