CI: Add a cache for the IANA time zone database files

This commit is contained in:
Timothy Flynn 2021-12-22 16:43:05 -05:00 committed by Linus Groh
parent 8669b25cea
commit 41f4a5050c
Notes: sideshowbarker 2024-07-17 21:26:51 +09:00
5 changed files with 26 additions and 5 deletions

View File

@ -120,8 +120,15 @@ jobs:
ccache -s
- name: Create build directory
run: |
mkdir -p ${{ github.workspace }}/Build/${{ matrix.arch }}/TZDB
mkdir -p ${{ github.workspace }}/Build/${{ matrix.arch }}/UCD
mkdir -p ${{ github.workspace }}/Build/${{ matrix.arch }}/CLDR
- name: TimeZoneData cache
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
with:
path: ${{ github.workspace }}/Build/${{ matrix.arch }}/TZDB
key: TimeZoneData-${{ hashFiles('Meta/CMake/time_zone_data.cmake') }}
- name: UnicodeData cache
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b

View File

@ -65,9 +65,17 @@ jobs:
- name: Create build directory
run: |
mkdir -p libjs-test262/Build/TZDB
mkdir -p libjs-test262/Build/UCD
mkdir -p libjs-test262/Build/CLDR
- name: TimeZoneData cache
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
with:
path: ${{ github.workspace }}/libjs-test262/Build/TZDB
key: TimeZoneData-${{ hashFiles('Meta/CMake/time_zone_data.cmake') }}
- name: UnicodeData cache
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b

View File

@ -7,7 +7,7 @@ parameters:
serenity_ccache_path: ''
toolchain_ccache_path: ''
toolchain_ccache_size: $(CCACHE_MAXSIZE)
with_unicode_caches: true
with_remote_data_caches: true
steps:
- script: |
@ -56,7 +56,13 @@ steps:
CCACHE_DIR=${{ parameters.serenity_ccache_path }} ccache -s
displayName: 'Configure Serenity ccache'
- ${{ if eq(parameters.with_unicode_caches, true) }}:
- ${{ if eq(parameters.with_remote_data_caches, true) }}:
- task: Cache@2
inputs:
key: '"time_zone_data" | Meta/CMake/time_zone_data.cmake'
path: $(Build.SourcesDirectory)/${{ parameters.build_directory }}/TZDB
displayName: 'TimeZoneData Cache'
- task: Cache@2
inputs:
key: '"unicode_data" | Meta/CMake/unicode_data.cmake'

View File

@ -39,9 +39,9 @@ jobs:
build_directory: 'Meta/Lagom/Build'
serenity_ccache_path: '$(SERENITY_CCACHE_DIR)'
${{ if eq(parameters.fuzzer, 'Fuzz') }}:
with_unicode_caches: false
with_remote_data_caches: false
${{ if eq(parameters.fuzzer, 'NoFuzz') }}:
with_unicode_caches: true
with_remote_data_caches: true
- script: |
mkdir -p Meta/Lagom/Build

View File

@ -21,7 +21,7 @@ jobs:
toolchain: 'clang'
toolchain_ccache_path: '$(LLVM_CCACHE_DIR)'
toolchain_ccache_size: '$(LLVM_CCACHE_MAXSIZE)'
with_unicode_caches: false
with_remote_data_caches: false
- script: ./Toolchain/BuildClang.sh --ci
displayName: Build Toolchain