Skip to content

Commit

Permalink
Add cache for nativeruntime Windows' ICU building
Browse files Browse the repository at this point in the history
Signed-off-by: utzcoz <utzcoz@outlook.com>
  • Loading branch information
utzcoz committed Dec 17, 2021
1 parent 5a531b2 commit 6a78a4c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build_native_runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
msystem: mingw64
update: true
platform-check-severity: warn
location: D:\
install: >-
make
mingw-w64-x86_64-gcc
Expand All @@ -45,13 +46,22 @@ jobs:
if: runner.os == 'Linux'
run: sudo apt-get install ninja-build

- name: Cache ICU build output
- name: Cache ICU build output (Non Windows)
id: cache-icu
uses: actions/cache@v2
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
with:
path: ~/icu-bin
key: ${{ runner.os }}-${{ runner.arch }}-icu-cache-v2-${{ hashFiles('nativeruntime/external/icu/**') }}

- name: Cache ICU build output (Windows)
id: cache-icu-windows
uses: actions/cache@v2
if: startsWith(runner.os, 'Windows')
with:
path: D:\msys64\home\runneradmin\icu-bin
key: ${{ runner.os }}-${{ runner.arch }}-icu-cache-v4-${{ hashFiles('nativeruntime/external/icu/**') }}

- name: Build ICU for MacOS
if: runner.os =='macOS' && steps.cache-icu.outputs.cache-hit != 'true'
run: |
Expand All @@ -71,7 +81,7 @@ jobs:
make install
- name: Build ICU for Windows
if: runner.os == 'Windows'
if: runner.os == 'Windows' && steps.cache-icu-windows.outputs.cache-hit != 'true'
shell: msys2 {0}
run: |
cd nativeruntime/external/icu/icu4c/source
Expand Down

0 comments on commit 6a78a4c

Please sign in to comment.