summaryrefslogtreecommitdiff
path: root/Meta/Azure/Serenity.yml
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-09-21 06:50:41 -0400
committerIdan Horowitz <idan.horowitz@gmail.com>2021-09-21 15:39:17 +0300
commit8084957e8864648269c34d3c7cf41eeb24a4309b (patch)
tree3a5eea5a6ab6b31d14aeb69a1839fce14e15496d /Meta/Azure/Serenity.yml
parent4a4e614387beead8c163189f0376e8bc480920ee (diff)
downloadserenity-8084957e8864648269c34d3c7cf41eeb24a4309b.zip
CI: Create a secondary ccache for the Clang toolchain build
We bust the prebuilt cache when any header in e.g. LibC changes. Doing a full toolchain rebuild probably isn't necessary, so this adds a separate ccache to speed up toolchain builds.
Diffstat (limited to 'Meta/Azure/Serenity.yml')
-rw-r--r--Meta/Azure/Serenity.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/Meta/Azure/Serenity.yml b/Meta/Azure/Serenity.yml
index bb12cea201..557397b740 100644
--- a/Meta/Azure/Serenity.yml
+++ b/Meta/Azure/Serenity.yml
@@ -8,6 +8,10 @@ jobs:
variables:
- name: SERENITY_CCACHE_DIR
value: $(Build.SourcesDirectory)/.ccache
+ - name: LLVM_CCACHE_DIR
+ value: $(Build.SourcesDirectory)/Toolchain/.ccache
+ - name: LLVM_CCACHE_MAXSIZE
+ value: 20GB
pool:
vmImage: ubuntu-20.04
@@ -23,8 +27,10 @@ jobs:
toolchain: 'clang'
build_directory: 'Build/${{ parameters.arch }}clang'
serenity_ccache_path: '$(SERENITY_CCACHE_DIR)'
+ toolchain_ccache_path: '$(LLVM_CCACHE_DIR)'
+ toolchain_ccache_size: '$(LLVM_CCACHE_MAXSIZE)'
- - script: ./Toolchain/BuildClang.sh
+ - script: ./Toolchain/BuildClang.sh --ci
displayName: Build Toolchain
env:
TRY_USE_LOCAL_TOOLCHAIN: 'y'
@@ -91,5 +97,9 @@ jobs:
condition: failed()
- script: |
+ echo "##[section]Toolchain Cache"
+ CCACHE_DIR='$(LLVM_CCACHE_DIR)' ccache -s
+
+ echo "##[section]Serenity Cache"
CCACHE_DIR='$(SERENITY_CCACHE_DIR)' ccache -s
displayName: 'Cache Stats'