From 15a468ea94bdb707c5de2f63d2111ee6baf044ba Mon Sep 17 00:00:00 2001 From: bmarques1995 Date: Thu, 30 Jan 2025 17:05:11 -0300 Subject: [PATCH] sample action --- .github/workflows/bvt.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/bvt.yml b/.github/workflows/bvt.yml index f27ee6be..e31b863c 100644 --- a/.github/workflows/bvt.yml +++ b/.github/workflows/bvt.yml @@ -81,6 +81,18 @@ jobs: echo "::error Unknown architecture/build-type triplet mapping" } + - name: Clone vcpkg and get latest baseline + shell: pwsh + run: | + git clone https://github.com/microsoft/vcpkg.git ${{ runner.workspace }}/vcpkg + Set-Location ${{ runner.workspace }}/vcpkg + $VCPKG_COMMIT_ID= (git rev-parse HEAD) # Get latest commit ID + Write-Host "Using vcpkg commit: $VCPKG_COMMIT_ID" + Write-Host "$GITHUB_WORKSPACE is the workspace" + Write-Host ${{ runner.workspace }} + Set-Location $GITHUB_WORKSPACE + (Get-Content vcpkg.json) -replace '"builtin-baseline": ".*"', '"builtin-baseline": "' + $VCPKG_COMMIT_ID + '"' | Set-Content vcpkg.json + - uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11 with: runVcpkgInstall: true