Skip to content

Commit 462fe56

Browse files
author
Joseph
committed
reverted to old vcpkg installation
Signed-off-by: Joseph <[email protected]>
1 parent 1ada69c commit 462fe56

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

windows-arc-runner/Dockerfile

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,13 @@ RUN python -m pip install --upgrade certifi setuptools; `
7070
certutil -addstore -f ROOT certs.sst; `
7171
del certs.sst
7272

73-
# --- vcpkg installation ---
74-
# Clone vcpkg
75-
RUN git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
76-
77-
# Bootstrap vcpkg (disable telemetry)
78-
RUN C:\vcpkg\bootstrap-vcpkg.bat -disableMetrics
79-
80-
# Add vcpkg to PATH
81-
SHELL ["powershell", "-Command", "$ErrorActionPreference='Stop';$ProgressPreference='SilentlyContinue';"]
82-
RUN $env:PATH += ';C:\vcpkg'; setx /M PATH $env:PATH
83-
84-
# Initialize VS Build Tools environment and install packages
85-
RUN powershell -NoProfile -Command `
86-
"& 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat'; `
87-
& 'C:\vcpkg\vcpkg.exe' install zlib:x64-windows --clean-after-build"
88-
73+
RUN git clone https://github.com/microsoft/vcpkg.git C:\vcpkg `
74+
&& cd C:\vcpkg `
75+
&& bootstrap-vcpkg.bat `
76+
&& SETX /M PATH "C:\vcpkg;%PATH%" `
77+
&& vcpkg install zlib:x64-windows --clean-after-build `
78+
&& vcpkg remove zlib:x64-windows
79+
8980
################################################################################
9081
# Entrypoint: VS Dev prompt + PowerShell
9182
################################################################################

0 commit comments

Comments
 (0)