ci/vs2019: switch to powershell 7
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16934>
This commit is contained in:
@@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
FROM mcr.microsoft.com/windows/server:ltsc2022
|
FROM mcr.microsoft.com/windows/server:ltsc2022
|
||||||
|
|
||||||
|
# https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/
|
||||||
|
# Wrapping the following command in cmd.exe
|
||||||
|
# iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"
|
||||||
|
RUN powershell -ExecutionPolicy RemoteSigned -Command "$ErrorActionPreference = 'Stop'; iex ""& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"""
|
||||||
|
|
||||||
# Make sure any failure in PowerShell scripts is fatal
|
# Make sure any failure in PowerShell scripts is fatal
|
||||||
SHELL ["powershell", "-ExecutionPolicy", "RemoteSigned", "-Command", "$ErrorActionPreference = 'Stop';"]
|
SHELL ["pwsh", "-ExecutionPolicy", "RemoteSigned", "-Command", "$ErrorActionPreference = 'Stop';"]
|
||||||
|
|
||||||
COPY mesa_deps_vs2019.ps1 C:\
|
COPY mesa_deps_vs2019.ps1 C:\
|
||||||
RUN C:\mesa_deps_vs2019.ps1
|
RUN C:\mesa_deps_vs2019.ps1
|
||||||
|
@@ -30,3 +30,7 @@ host, without Docker.
|
|||||||
The Mesa build runs inside the base container, executing `mesa_build.ps1`.
|
The Mesa build runs inside the base container, executing `mesa_build.ps1`.
|
||||||
This simply compiles Mesa using Meson and Ninja, executing the build and
|
This simply compiles Mesa using Meson and Ninja, executing the build and
|
||||||
unit tests. Currently, no build artifacts are captured.
|
unit tests. Currently, no build artifacts are captured.
|
||||||
|
|
||||||
|
## Using build scripts locally
|
||||||
|
|
||||||
|
`*.ps1` scripts for building dockers are using PowerShell 7 to run
|
||||||
|
Reference in New Issue
Block a user