1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-08-01 14:27:34 +00:00

CI: Use Azure caching for Lagom build

Adds a compiler cache and a cache for the UCD files.
This commit is contained in:
Timothy Flynn 2021-08-16 19:02:27 -04:00 committed by Linus Groh
parent 831f90c9d4
commit 5eba8c948d
3 changed files with 40 additions and 2 deletions

24
Meta/Azure/Caches.yml Normal file
View file

@ -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'