Skip to content

Commit b61518f

Browse files
committed
fix(ci): Properly pass vcpkg path to env for Windows builds
1 parent 2284950 commit b61518f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ jobs:
4040
- name: Install Dependencies (Windows)
4141
if: matrix.os == 'windows-latest'
4242
run: |
43-
git clone https://github.com/microsoft/vcpkg.git $env:RUNNER_TEMP/vcpkg
44-
$env:RUNNER_TEMP/vcpkg/bootstrap-vcpkg.bat
45-
$env:RUNNER_TEMP/vcpkg/vcpkg install curl:x64-windows
43+
$vcpkgPath = "${{ runner.temp }}/vcpkg"
44+
git clone https://github.com/microsoft/vcpkg.git $vcpkgPath
45+
& "$vcpkgPath/bootstrap-vcpkg.bat"
46+
& "$vcpkgPath/vcpkg" install curl:x64-windows
47+
echo "VCPKG_ROOT=$vcpkgPath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
4648
shell: pwsh
4749

4850
- name: Configure CMake (Windows)
4951
if: matrix.os == 'windows-latest'
50-
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$env:RUNNER_TEMP/vcpkg/scripts/buildsystems/vcpkg.cmake" -DARKILIAN_BUILD_EXAMPLES=OFF
52+
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DARKILIAN_BUILD_EXAMPLES=OFF
5153
shell: pwsh
5254

5355
- name: Configure CMake (Unix)

0 commit comments

Comments
 (0)