mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Update Windows CI image to Visual Studio 2022
This commit is contained in:
parent
d0f82d8e15
commit
295efa7e83
3 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ SHELL [ "powershell" ]
|
||||||
|
|
||||||
# A version field to invalidatea Cirrus's build cache when needed, as suggested in
|
# A version field to invalidatea Cirrus's build cache when needed, as suggested in
|
||||||
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
|
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
|
||||||
ENV DOCKERFILE_VERSION 20230801
|
ENV DOCKERFILE_VERSION 20250528
|
||||||
|
|
||||||
RUN Set-ExecutionPolicy Unrestricted -Force
|
RUN Set-ExecutionPolicy Unrestricted -Force
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ RUN [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePoin
|
||||||
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||||
|
|
||||||
# Install prerequisites
|
# Install prerequisites
|
||||||
RUN choco install -y --no-progress visualstudio2019buildtools --version=16.11.11.0
|
RUN choco install -y --no-progress visualstudio2022buildtools --version=117.14.1
|
||||||
RUN choco install -y --no-progress visualstudio2019-workload-vctools --version=1.0.0 --package-parameters '--add Microsoft.VisualStudio.Component.VC.ATLMFC'
|
RUN choco install -y --no-progress visualstudio2022-workload-vctools --version=1.0.0 --package-parameters '--add Microsoft.VisualStudio.Component.VC.ATLMFC'
|
||||||
RUN choco install -y --no-progress sed
|
RUN choco install -y --no-progress sed
|
||||||
RUN choco install -y --no-progress winflexbison3
|
RUN choco install -y --no-progress winflexbison3
|
||||||
RUN choco install -y --no-progress msysgit
|
RUN choco install -y --no-progress msysgit
|
||||||
|
@ -30,4 +30,4 @@ RUN mkdir C:\build
|
||||||
WORKDIR C:\build
|
WORKDIR C:\build
|
||||||
|
|
||||||
# This entry point starts the developer command prompt and launches the PowerShell shell.
|
# This entry point starts the developer command prompt and launches the PowerShell shell.
|
||||||
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "-arch=x64", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Unrestricted"]
|
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "-arch=x64", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Unrestricted"]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
:: cmd current shell. This path is hard coded to the one on the CI image, but
|
:: cmd current shell. This path is hard coded to the one on the CI image, but
|
||||||
:: can be adjusted if running builds locally. Unfortunately, the initial path
|
:: can be adjusted if running builds locally. Unfortunately, the initial path
|
||||||
:: isn't in the environment so we have to hardcode the whole path.
|
:: isn't in the environment so we have to hardcode the whole path.
|
||||||
call "c:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
|
call "c:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
:: See build.cmd for documentation on this call.
|
:: See build.cmd for documentation on this call.
|
||||||
call "c:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
|
call "c:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue