diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-01-07 16:08:37 -0500 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-01-07 18:16:30 -0800 |
commit | 3938a2cca7b2f28bc2e2ac717e578b1386b3d2de (patch) | |
tree | 6be3a715df67fb4b340d337c3ebd85a323494bc2 /Meta/Azure | |
parent | 80626ca51f74eb21fd56653c1f4843f58a9bcbc6 (diff) | |
download | serenity-3938a2cca7b2f28bc2e2ac717e578b1386b3d2de.zip |
CI: Extract toolchain ccache in the Serenity build stage
The toolchain is built in a previous stage, but once the Serenity stage
has begun, we have to re-pull the toolchain from the Azure cache. There
is a timing window where a cache-busting change can be commited between
these steps; to alleviate the affect this has, pull the toolchain ccache
so that the build only takes a few minutes instead of a couple hours.
Diffstat (limited to 'Meta/Azure')
-rw-r--r-- | Meta/Azure/Serenity.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Meta/Azure/Serenity.yml b/Meta/Azure/Serenity.yml index 15c9e333d9..5144ed72b3 100644 --- a/Meta/Azure/Serenity.yml +++ b/Meta/Azure/Serenity.yml @@ -6,6 +6,10 @@ jobs: timeoutInMinutes: 0 # Setting to 0 means the maximum allowed timeout is used. variables: + - name: LLVM_CCACHE_DIR + value: $(Build.SourcesDirectory)/Toolchain/.ccache + - name: LLVM_CCACHE_MAXSIZE + value: 20GB - name: SERENITY_CCACHE_DIR value: $(Build.SourcesDirectory)/.ccache @@ -22,9 +26,11 @@ jobs: arch: '${{ parameters.arch }}' toolchain: 'clang' build_directory: 'Build/${{ parameters.arch }}clang' + toolchain_ccache_path: '$(LLVM_CCACHE_DIR)' + toolchain_ccache_size: '$(LLVM_CCACHE_MAXSIZE)' serenity_ccache_path: '$(SERENITY_CCACHE_DIR)' - - script: ./Toolchain/BuildClang.sh + - script: ./Toolchain/BuildClang.sh --ci displayName: Extract Toolchain env: TRY_USE_LOCAL_TOOLCHAIN: 'y' |