diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-09-21 06:42:35 -0400 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-21 15:39:17 +0300 |
commit | 4a4e614387beead8c163189f0376e8bc480920ee (patch) | |
tree | f398d17f579522e63cae6766cb35a3cb982054a5 /Meta/Azure/Serenity.yml | |
parent | 5a2f41fff079040852f3ba8fe7bedeb17b50e734 (diff) | |
download | serenity-4a4e614387beead8c163189f0376e8bc480920ee.zip |
CI: Set ccache path based on template parameter
Currently, the templated steps in Caches.yml rely on the environment
variable CCACHE_DIR being set to configure the ccache location. To
prepare for multiple ccache paths, do not rely on this environment
variable because only one ccache can use it at a time. Instead, pass
the path into the template as a parameter.
Diffstat (limited to 'Meta/Azure/Serenity.yml')
-rw-r--r-- | Meta/Azure/Serenity.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Meta/Azure/Serenity.yml b/Meta/Azure/Serenity.yml index 04f3af3281..bb12cea201 100644 --- a/Meta/Azure/Serenity.yml +++ b/Meta/Azure/Serenity.yml @@ -6,7 +6,7 @@ jobs: timeoutInMinutes: 0 # Setting to 0 means the maximum allowed timeout is used. variables: - - name: CCACHE_DIR + - name: SERENITY_CCACHE_DIR value: $(Build.SourcesDirectory)/.ccache pool: @@ -22,6 +22,7 @@ jobs: arch: '${{ parameters.arch }}' toolchain: 'clang' build_directory: 'Build/${{ parameters.arch }}clang' + serenity_ccache_path: '$(SERENITY_CCACHE_DIR)' - script: ./Toolchain/BuildClang.sh displayName: Build Toolchain @@ -44,11 +45,15 @@ jobs: -DCMAKE_CXX_COMPILER=g++-10 displayName: 'Create Build Environment' workingDirectory: $(Build.SourcesDirectory) + env: + CCACHE_DIR: '$(SERENITY_CCACHE_DIR)' - script: | cmake --build ./Build/superbuild displayName: 'Build' workingDirectory: $(Build.SourcesDirectory) + env: + CCACHE_DIR: '$(SERENITY_CCACHE_DIR)' - script: | ninja install && ninja image @@ -86,5 +91,5 @@ jobs: condition: failed() - script: | - ccache -s + CCACHE_DIR='$(SERENITY_CCACHE_DIR)' ccache -s displayName: 'Cache Stats' |