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.
This commit is contained in:
Timothy Flynn 2021-08-25 06:57:47 -04:00 committed by Linus Groh
parent e883792fd4
commit 3127454642
Notes: sideshowbarker 2024-07-18 05:15:50 +09:00
2 changed files with 16 additions and 10 deletions

View file

@ -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,6 +33,7 @@ steps:
path: $(CCACHE_DIR)
displayName: 'Compiler Cache'
- ${{ if eq(parameters.with_unicode_caches, true) }}:
- task: Cache@2
inputs:
key: '"unicode_data" | Userland/Libraries/LibUnicode/unicode_data.cmake'

View file

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