diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-16 19:02:27 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-17 13:31:43 +0100 |
commit | 5eba8c948d57f8d144a66177ad4c75e99bffa991 (patch) | |
tree | b02357a3c016c23834567543cec57e99d3c9e734 /Meta/Azure/Caches.yml | |
parent | 831f90c9d4f3ad6152836d292f3d11fb6d1066d2 (diff) | |
download | serenity-5eba8c948d57f8d144a66177ad4c75e99bffa991.zip |
CI: Use Azure caching for Lagom build
Adds a compiler cache and a cache for the UCD files.
Diffstat (limited to 'Meta/Azure/Caches.yml')
-rw-r--r-- | Meta/Azure/Caches.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Meta/Azure/Caches.yml b/Meta/Azure/Caches.yml new file mode 100644 index 0000000000..cd0a17ba4c --- /dev/null +++ b/Meta/Azure/Caches.yml @@ -0,0 +1,24 @@ +parameters: + os: 'Linux' + arch: 'i686' + toolchain: 'gcc' + build_directory: '' + ccache_version: 1 # Increment this number if CI has trouble with ccache. + +steps: + - task: Cache@2 + inputs: + key: '"ccache" | "${{ parameters.os }}" | "${{ parameters.arch }}" | "${{ parameters.toolchain }}" | "${{ parameters.ccache_version }}"' + path: $(CCACHE_DIR) + displayName: 'Compiler Cache' + + - task: Cache@2 + inputs: + key: '"unicode_data" | Userland/Libraries/LibUnicode/unicode_data.cmake' + path: $(Build.SourcesDirectory)/${{ parameters.build_directory }}/UCD + displayName: 'UnicodeData Cache' + + - script: | + ccache -M 5G + ccache -s + displayName: 'Configure ccache' |