Skip to content

Commit 4a8204d

Browse files
committed
Set environment variable in script
1 parent 1f94167 commit 4a8204d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@ jobs:
4040
id: configure-build
4141
shell: pwsh
4242
working-directory: build/
43-
env:
44-
VCPKG_BINARY_SOURCES: 'clear;files,${{ steps.configure-build.working-directory }}/vcpkg_cache/,$(if ${{ steps.cache-vcpkg.outputs.cache-hit }} { "r" } else { "rw" })'
4543
run: |
4644
$vcpkgToolchain = Join-Path $env:VCPKG_INSTALLATION_ROOT '.\scripts\buildsystems\vcpkg.cmake' -Resolve
4745
$vcpkgTriplet = '${{ steps.set-variables.outputs.vcpkg_triplet }}'
4846
$cmakeSharedLibs = $(if ('${{ matrix.libs }}' -eq 'shared') { 'ON' } else { 'OFF' })
4947
$msbuildArch = $(if ('${{ matrix.arch }}' -eq 'x64') { 'X64' } else { 'Win32' })
48+
$env:VCPKG_BINARY_SOURCES = "clear;files,${{ steps.configure-build.working-directory }}/vcpkg_cache/,$(if ${{ steps.cache-vcpkg.outputs.cache-hit }} { 'r' } else { 'rw' })"
5049
5150
cmake "-DCMAKE_TOOLCHAIN_FILE=$vcpkgToolchain" "-DVCPKG_TARGET_TRIPLET=$vcpkgTriplet" "-DBUILD_SHARED_LIBS=$cmakeSharedLibs" -G "Visual Studio 17 2022" -A "$msbuildArch" ${{ github.workspace }}
5251

0 commit comments

Comments
 (0)