diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c94fb69e4..6cb31306cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -352,7 +352,7 @@ variables: &tests-targets - choco source add -n=openmw-proxy -s="https://repo.openmw.org/repository/Chocolatey/" --priority=1 - choco install git --force --params "/GitAndUnixToolsOnPath" -y - choco install 7zip -y - - choco install sccache -y + - choco install ccache -y - choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y - choco install vswhere -y - choco install ninja -y @@ -375,11 +375,10 @@ variables: &tests-targets - $time = (Get-Date -Format "HH:mm:ss") - echo ${time} - echo "started by ${GITLAB_USER_NAME}" - - $env:SCCACHE_BASEDIR = Get-Location - - $env:SCCACHE_DIR = "$(Get-Location)\sccache" - - New-Item -Type Directory -Force -Path $env:SCCACHE_DIR - - sccache --show-stats - # - sccache --start-server + - $env:CCACHE_BASEDIR = Get-Location + - $env:CCACHE_DIR = "$(Get-Location)\ccache" + - New-Item -Type Directory -Force -Path $env:CCACHE_DIR + - ccache --show-stats - sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V -N -b -t -C - cd MSVC2019_64_Ninja - .\ActivateMSVC.ps1 @@ -394,13 +393,13 @@ variables: &tests-targets } - 7z a -tzip "..\..\$(Make-SafeFileName("OpenMW_MSVC2019_64_${package}_${config}_${CI_COMMIT_REF_NAME}.zip"))" '*' - if ($executables) { foreach ($exe in $executables.Split(',')) { & .\$exe } } - - sccache --show-stats + - ccache --show-stats after_script: - Copy-Item C:\ProgramData\chocolatey\logs\chocolatey.log cache: key: ninja-v2 paths: - - sccache + - ccache - deps - MSVC2019_64_Ninja/deps/Qt variables: diff --git a/CI/before_script.msvc.sh b/CI/before_script.msvc.sh index 7881ee9231..0ad62e849d 100644 --- a/CI/before_script.msvc.sh +++ b/CI/before_script.msvc.sh @@ -149,7 +149,7 @@ Options: For mutli-config generators, this is ignored, and all configurations are set up. For single-config generators, several configurations can be set up at once by specifying -c multiple times. -C - Use sccache. + Use ccache. -d Skip checking the downloads. -e @@ -509,7 +509,7 @@ if ! [ -z $UNITY_BUILD ]; then fi if ! [ -z $USE_SCCACHE ]; then - add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache" + add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" fi echo