aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-07 03:54:22 +0200
committerGitHub <noreply@github.com>2019-04-07 03:54:22 +0200
commita7a56293aad9427720fc72b86220dd65a79f6778 (patch)
treedee19226d8db0dae4047000f221ad29449766fb7 /ci
parent805b5f2e1ec074648e2142c1eaab1d2c089aa58d (diff)
downloadrneovim-a7a56293aad9427720fc72b86220dd65a79f6778.tar.gz
rneovim-a7a56293aad9427720fc72b86220dd65a79f6778.tar.bz2
rneovim-a7a56293aad9427720fc72b86220dd65a79f6778.zip
CI/AppVeyor: per-compiler deps cache #9852
The deps cache does not work for MSVC builds because the MINGW builds ovewrite it. Cache saves 10+ minutes on the build.
Diffstat (limited to 'ci')
-rw-r--r--ci/build.ps19
1 files changed, 6 insertions, 3 deletions
diff --git a/ci/build.ps1 b/ci/build.ps1
index 1ba3fa8a6b..88eb02a3f4 100644
--- a/ci/build.ps1
+++ b/ci/build.ps1
@@ -6,12 +6,15 @@ $compiler = $Matches.compiler
$compileOption = $Matches.option
$bits = $Matches.bits
$cmakeBuildType = 'RelWithDebInfo'
+$depsDir = [System.IO.Path]::GetFullPath("deps-$($compiler)")
$depsCmakeVars = @{
CMAKE_BUILD_TYPE = $cmakeBuildType;
}
$nvimCmakeVars = @{
CMAKE_BUILD_TYPE = $cmakeBuildType;
BUSTED_OUTPUT_TYPE = 'nvim';
+ DEPS_BUILD_DIR=$depsDir;
+ DEPS_PREFIX="$($depsDir)/usr";
}
$uploadToCodeCov = $false
@@ -89,10 +92,10 @@ function convertToCmakeArgs($vars) {
return $vars.GetEnumerator() | foreach { "-D$($_.Key)=$($_.Value)" }
}
-if (-Not (Test-Path -PathType container .deps)) {
- mkdir .deps
+if (-Not (Test-Path -PathType container $depsDir)) {
+ mkdir "$depsDir"
}
-cd .deps
+cd "$depsDir"
cmake -G $cmakeGenerator $(convertToCmakeArgs($depsCmakeVars)) ..\third-party\ ; exitIfFailed
cmake --build . --config $cmakeBuildType -- $cmakeGeneratorArgs ; exitIfFailed
cd ..