mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci: AppVeyor: DEPS_BUILD_DIR is not a CMake variable [ci skip] (#10613)
Fixes: > CMake Warning: > Manually-specified variables were not used by the project: > > DEPS_BUILD_DIR
This commit is contained in:
parent
7be85ed0f5
commit
997601d966
14
ci/build.ps1
14
ci/build.ps1
@ -14,9 +14,11 @@ $depsCmakeVars = @{
|
|||||||
$nvimCmakeVars = @{
|
$nvimCmakeVars = @{
|
||||||
CMAKE_BUILD_TYPE = $cmakeBuildType;
|
CMAKE_BUILD_TYPE = $cmakeBuildType;
|
||||||
BUSTED_OUTPUT_TYPE = 'nvim';
|
BUSTED_OUTPUT_TYPE = 'nvim';
|
||||||
DEPS_BUILD_DIR=$(if ($env:DEPS_BUILD_DIR -ne $null) {$env:DEPS_BUILD_DIR} else {".deps"});
|
|
||||||
DEPS_PREFIX=$(if ($env:DEPS_PREFIX -ne $null) {$env:DEPS_PREFIX} else {".deps/usr"});
|
DEPS_PREFIX=$(if ($env:DEPS_PREFIX -ne $null) {$env:DEPS_PREFIX} else {".deps/usr"});
|
||||||
}
|
}
|
||||||
|
if ($env:DEPS_BUILD_DIR -eq $null) {
|
||||||
|
$env:DEPS_BUILD_DIR = ".deps";
|
||||||
|
}
|
||||||
$uploadToCodeCov = $false
|
$uploadToCodeCov = $false
|
||||||
|
|
||||||
function exitIfFailed() {
|
function exitIfFailed() {
|
||||||
@ -26,11 +28,11 @@ function exitIfFailed() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-Not (Test-Path -PathType container $nvimCmakeVars["DEPS_BUILD_DIR"])) {
|
if (-Not (Test-Path -PathType container $env:DEPS_BUILD_DIR)) {
|
||||||
write-host "cache dir not found: $($nvimCmakeVars['DEPS_BUILD_DIR'])"
|
write-host "cache dir not found: $($env:DEPS_BUILD_DIR)"
|
||||||
mkdir $nvimCmakeVars["DEPS_BUILD_DIR"]
|
mkdir $env:DEPS_BUILD_DIR
|
||||||
} else {
|
} else {
|
||||||
write-host "cache dir $($nvimCmakeVars['DEPS_BUILD_DIR']) size: $(Get-ChildItem $nvimCmakeVars['DEPS_BUILD_DIR'] -recurse | Measure-Object -property length -sum | Select -expand sum)"
|
write-host "cache dir $($env:DEPS_BUILD_DIR) size: $(Get-ChildItem $env:DEPS_BUILD_DIR -recurse | Measure-Object -property length -sum | Select -expand sum)"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($compiler -eq 'MINGW') {
|
if ($compiler -eq 'MINGW') {
|
||||||
@ -96,7 +98,7 @@ function convertToCmakeArgs($vars) {
|
|||||||
return $vars.GetEnumerator() | foreach { "-D$($_.Key)=$($_.Value)" }
|
return $vars.GetEnumerator() | foreach { "-D$($_.Key)=$($_.Value)" }
|
||||||
}
|
}
|
||||||
|
|
||||||
cd $nvimCmakeVars["DEPS_BUILD_DIR"]
|
cd $env:DEPS_BUILD_DIR
|
||||||
cmake -G $cmakeGenerator $(convertToCmakeArgs($depsCmakeVars)) "$buildDir/third-party/" ; exitIfFailed
|
cmake -G $cmakeGenerator $(convertToCmakeArgs($depsCmakeVars)) "$buildDir/third-party/" ; exitIfFailed
|
||||||
cmake --build . --config $cmakeBuildType -- $cmakeGeneratorArgs ; exitIfFailed
|
cmake --build . --config $cmakeBuildType -- $cmakeGeneratorArgs ; exitIfFailed
|
||||||
cd $buildDir
|
cd $buildDir
|
||||||
|
Loading…
Reference in New Issue
Block a user