2021-10-17 16:45:04 +00:00
|
|
|
jobs:
|
|
|
|
- job: 'Serenity_Clang_Toolchain'
|
|
|
|
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
|
|
|
|
|
|
|
|
pool:
|
2022-05-23 20:12:57 +00:00
|
|
|
vmImage: ubuntu-22.04
|
2021-10-17 16:45:04 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: Setup.yml
|
|
|
|
parameters:
|
|
|
|
os: 'Serenity'
|
|
|
|
|
|
|
|
- template: Caches.yml
|
|
|
|
parameters:
|
|
|
|
toolchain: 'clang'
|
|
|
|
toolchain_ccache_path: '$(LLVM_CCACHE_DIR)'
|
|
|
|
toolchain_ccache_size: '$(LLVM_CCACHE_MAXSIZE)'
|
2021-12-22 21:43:05 +00:00
|
|
|
with_remote_data_caches: false
|
2021-10-17 16:45:04 +00:00
|
|
|
|
|
|
|
- script: ./Toolchain/BuildClang.sh --ci
|
|
|
|
displayName: Build Toolchain
|
|
|
|
env:
|
|
|
|
TRY_USE_LOCAL_TOOLCHAIN: 'y'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
echo "##[section]Toolchain Cache"
|
|
|
|
CCACHE_DIR='$(LLVM_CCACHE_DIR)' ccache -s
|
|
|
|
displayName: 'Cache Stats'
|