summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-22 22:20:47 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-22 22:22:11 (GMT)
commitbf973c41e53adbe21a415c8855dbf4c9fc990c90 (patch)
tree728a8db939c276a517f5b82f6e94da339abe3186 /.gitlab/ci
parentb0f7aebc774a7d83fb197fc3431e99f2e8215480 (diff)
downloadCMake-bf973c41e53adbe21a415c8855dbf4c9fc990c90.zip
CMake-bf973c41e53adbe21a415c8855dbf4c9fc990c90.tar.gz
CMake-bf973c41e53adbe21a415c8855dbf4c9fc990c90.tar.bz2
ci: Factor out scripts to add sccache to job environment
Diffstat (limited to '.gitlab/ci')
-rwxr-xr-x.gitlab/ci/sccache-env.ps11
-rw-r--r--.gitlab/ci/sccache-env.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab/ci/sccache-env.ps1 b/.gitlab/ci/sccache-env.ps1
new file mode 100755
index 0000000..66dc6eb
--- /dev/null
+++ b/.gitlab/ci/sccache-env.ps1
@@ -0,0 +1 @@
+Set-Item -Force -Path "env:PATH" -Value "$env:PATH;$env:SCCACHE_PATH"
diff --git a/.gitlab/ci/sccache-env.sh b/.gitlab/ci/sccache-env.sh
new file mode 100644
index 0000000..4b170a4
--- /dev/null
+++ b/.gitlab/ci/sccache-env.sh
@@ -0,0 +1,2 @@
+.gitlab/ci/sccache.sh
+export PATH="$PWD/.gitlab:$PATH"