mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
ci(win): only remove choco's cpack.exe if it exists
(cherry picked from commit ec0f4fab48
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
b60293b76d
commit
64ec1f5b02
@@ -171,7 +171,9 @@ if (-not $NoTests) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Ensure choco's cpack is not in PATH otherwise, it conflicts with CMake's
|
# Ensure choco's cpack is not in PATH otherwise, it conflicts with CMake's
|
||||||
Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force
|
if (Get-Item -Path $env:ChocolateyInstall\bin\cpack.exe) {
|
||||||
|
Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force
|
||||||
|
}
|
||||||
|
|
||||||
# Build artifacts
|
# Build artifacts
|
||||||
cpack -G ZIP -C RelWithDebInfo
|
cpack -G ZIP -C RelWithDebInfo
|
||||||
|
Reference in New Issue
Block a user