Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use docker image cache for "Win64 native [vs2022]" task
- Loading branch information
Showing
2 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARG CI_IMAGE_NAME_TAG | ||
FROM ${CI_IMAGE_NAME_TAG} | ||
|
||
ARG CI_CCACHE_VERSION | ||
ENV CI_CCACHE_VERSION=${CI_CCACHE_VERSION} | ||
RUN choco install --yes --no-progress ccache --version=%CI_CCACHE_VERSION% | ||
|
||
ARG CI_PYTHON_VERSION | ||
ENV CI_PYTHON_VERSION=${CI_PYTHON_VERSION} | ||
RUN choco install --yes --no-progress python3 --version=%CI_PYTHON_VERSION% | ||
|
||
RUN pip install zmq | ||
|
||
RUN git clone --quiet https://github.com/microsoft/vcpkg.git | ||
|
||
ARG CI_VCPKG_TAG | ||
ENV CI_VCPKG_TAG=${CI_VCPKG_TAG} | ||
RUN cd vcpkg && git -c advice.detachedHead=false checkout %CI_VCPKG_TAG% | ||
|
||
RUN .\vcpkg\bootstrap-vcpkg.bat -disableMetrics | ||
|
||
RUN echo set(VCPKG_BUILD_TYPE release) >> vcpkg\triplets\x64-windows-static.cmake | ||
|
||
RUN .\vcpkg\vcpkg integrate install | ||
|
||
RUN .\vcpkg\vcpkg install --triplet=x64-windows-static vcpkg-cmake |