mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 01:10:42 +00:00
b11a34330a
As of the Clang 13 upgrade, we only need to build the toolchain once and can use that toolchain for both x86_64 and i686. To do this, this breaks the main Azure configuration into 3 "stages" (Lagom, Toolchain, and Serenity), where the Serenity stage depends on the Toolchain stage. This has the added benefit of uploading a new prebuilt toolchain cache sooner than before, which should help alleviate pressure from PRs.
34 lines
880 B
YAML
34 lines
880 B
YAML
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:
|
|
vmImage: ubuntu-20.04
|
|
|
|
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)'
|
|
with_unicode_caches: false
|
|
|
|
- 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'
|