summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-24 23:31:21 -0400
committerLinus Groh <mail@linusgroh.de>2021-08-26 22:04:09 +0100
commite883792fd43be6ef0c73471a559f20ea814a8280 (patch)
treeb7b443438281ca5b9fb37f7ed3a4fb15da377d06
parentea21573ed8ddf75614f3a3c5f0e761459f35a396 (diff)
downloadserenity-e883792fd43be6ef0c73471a559f20ea814a8280.zip
CI: Cache downloaded Unicode CLDR database
-rw-r--r--.github/workflows/cmake.yml7
-rw-r--r--Meta/Azure/Caches.yml6
2 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 9ce0402988..0e190afac1 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -120,12 +120,19 @@ jobs:
run: |
mkdir -p ${{ github.workspace }}/Build
mkdir -p ${{ github.workspace }}/Build/UCD
+ mkdir -p ${{ github.workspace }}/Build/CLDR
- 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
with:
path: ${{ github.workspace }}/Build/UCD
key: UnicodeData-${{ hashFiles('Userland/Libraries/LibUnicode/unicode_data.cmake') }}
+ - name: UnicodeLocale 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/CLDR
+ key: UnicodeLocale-${{ hashFiles('Userland/Libraries/LibUnicode/unicode_data.cmake') }}
- name: Create build environment with extra debug options
working-directory: ${{ github.workspace }}/Build
# Build the entire project with all available debug options turned on, to prevent code rot.
diff --git a/Meta/Azure/Caches.yml b/Meta/Azure/Caches.yml
index 99a9b1aa27..5d1f2abfb2 100644
--- a/Meta/Azure/Caches.yml
+++ b/Meta/Azure/Caches.yml
@@ -38,6 +38,12 @@ steps:
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'
+
- script: |
ccache -M 5G
ccache -s