From 79f3790c1a9abb2c63f3fa5e56c072c253c934b8 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 26 May 2020 09:42:03 -0400 Subject: 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. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12