summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-05-26 13:42:03 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-05-26 16:50:16 (GMT)
commit79f3790c1a9abb2c63f3fa5e56c072c253c934b8 (patch)
treed16e7a4c18bb8d84ddfb83a3c7e515435468de03 /.gitlab-ci.yml
parentb368c2d2f7d2fb420c2be623c81c0f56ca56f64a (diff)
downloadCMake-79f3790c1a9abb2c63f3fa5e56c072c253c934b8.zip
CMake-79f3790c1a9abb2c63f3fa5e56c072c253c934b8.tar.gz
CMake-79f3790c1a9abb2c63f3fa5e56c072c253c934b8.tar.bz2
gitlab-ci: get sccache location from the runner on Windows
When the sccache executable is in the build directory, it can fail to be removed if the daemon is still running when another job starts. It continues to run when a job is canceled or fails and then is "in use" and cannot be deleted.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0b22b35..93b5da1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -177,7 +177,7 @@
script:
- *before_script_windows
- - Invoke-Expression -Command .gitlab/ci/sccache.ps1
+ - Set-Item -Force -Path "env:PATH" -Value "$env:PATH;$env:SCCACHE_PATH"
- Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
- sccache --start-server
- sccache --show-stats