mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
CI: Add a cache for the IANA time zone database files
This commit is contained in:
parent
8669b25cea
commit
41f4a5050c
Notes:
sideshowbarker
2024-07-17 21:26:51 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/41f4a5050c8 Pull-request: https://github.com/SerenityOS/serenity/pull/11699 Reviewed-by: https://github.com/linusg ✅
5 changed files with 26 additions and 5 deletions
7
.github/workflows/cmake.yml
vendored
7
.github/workflows/cmake.yml
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/libjs-test262.yml
vendored
8
.github/workflows/libjs-test262.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue