summaryrefslogtreecommitdiff
path: root/Meta/Azure
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-25 06:57:47 -0400
committerLinus Groh <mail@linusgroh.de>2021-08-26 22:04:09 +0100
commit3127454642dbc28ec2e2930b75524276f3386133 (patch)
tree0a4bdd2b74296db142a82c27ec87222088fadb0e /Meta/Azure
parente883792fd43be6ef0c73471a559f20ea814a8280 (diff)
downloadserenity-3127454642dbc28ec2e2930b75524276f3386133.zip
CI: Skip Unicode caches for Fuzzer build
There is a bit of a race here between the Fuzzer and non-Fuzzer Lagom builds. If the Unicode caches are empty, and the Fuzzer build completes first, then the UCD and CLDR directories will be empty or won't exist. Skip handling the Unicode caches for this build.
Diffstat (limited to 'Meta/Azure')
-rw-r--r--Meta/Azure/Caches.yml22
-rw-r--r--Meta/Azure/Lagom.yml4
2 files changed, 16 insertions, 10 deletions
diff --git a/Meta/Azure/Caches.yml b/Meta/Azure/Caches.yml
index 5d1f2abfb2..55d30688f1 100644
--- a/Meta/Azure/Caches.yml
+++ b/Meta/Azure/Caches.yml
@@ -4,6 +4,7 @@ parameters:
toolchain: 'gcc'
build_directory: ''
ccache_version: 1 # Increment this number if CI has trouble with ccache.
+ with_unicode_caches: true
steps:
- script: |
@@ -32,17 +33,18 @@ steps:
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'
+ - ${{ if eq(parameters.with_unicode_caches, true) }}:
+ - task: Cache@2
+ inputs:
+ key: '"unicode_data" | Userland/Libraries/LibUnicode/unicode_data.cmake'
+ path: $(Build.SourcesDirectory)/${{ parameters.build_directory }}/UCD
+ displayName: 'UnicodeData Cache'
- - task: Cache@2
- inputs:
- key: '"unicode_locale" | Userland/Libraries/LibUnicode/unicode_data.cmake'
- path: $(Build.SourcesDirectory)/${{ parameters.build_directory }}/CLDR
- displayName: 'UnicodeLocale Cache'
+ - task: Cache@2
+ inputs:
+ key: '"unicode_locale" | Userland/Libraries/LibUnicode/unicode_data.cmake'
+ path: $(Build.SourcesDirectory)/${{ parameters.build_directory }}/CLDR
+ displayName: 'UnicodeLocale Cache'
- script: |
ccache -M 5G
diff --git a/Meta/Azure/Lagom.yml b/Meta/Azure/Lagom.yml
index 61d1e8dea6..c5ad99586d 100644
--- a/Meta/Azure/Lagom.yml
+++ b/Meta/Azure/Lagom.yml
@@ -36,6 +36,10 @@ jobs:
arch: 'Lagom'
toolchain: '$(toolchain)'
build_directory: 'Meta/Lagom/Build'
+ ${{ if eq(parameters.fuzzer, 'Fuzz') }}:
+ with_unicode_caches: false
+ ${{ if eq(parameters.fuzzer, 'NoFuzz') }}:
+ with_unicode_caches: true
- script: |
mkdir -p Meta/Lagom/Build