diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-05-26 09:42:03 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-05-26 12:50:16 -0400 |
commit | 79f3790c1a9abb2c63f3fa5e56c072c253c934b8 (patch) | |
tree | d16e7a4c18bb8d84ddfb83a3c7e515435468de03 /.gitlab-ci.yml | |
parent | b368c2d2f7d2fb420c2be623c81c0f56ca56f64a (diff) | |
download | cmake-79f3790c1a9abb2c63f3fa5e56c072c253c934b8.tar.gz |
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.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b22b351db..93b5da1fde 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 |