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.
This commit is contained in:
Justin M. Keyes
2019-04-07 03:54:22 +02:00
committed by GitHub
parent 805b5f2e1e
commit a7a56293aa
4 changed files with 18 additions and 10 deletions

View File

@@ -235,6 +235,11 @@ local function hasenv(name)
return nil
end
local function deps_prefix()
local env = os.getenv('DEPS_PREFIX')
return (env and env ~= '') and env or '.deps/usr'
end
local tests_skipped = 0
local function check_cores(app, force)
@@ -263,7 +268,7 @@ local function check_cores(app, force)
else
initial_path = '.'
re = '/core[^/]*$'
exc_re = { '^/%.deps$', local_tmpdir, '^/%node_modules$' }
exc_re = { '^/%.deps$', '^/%'..deps_prefix()..'$', local_tmpdir, '^/%node_modules$' }
db_cmd = gdb_db_cmd
random_skip = true
end