Skip to content

Commit

Permalink
Update tests workflow to use consistent icu cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
hoisie committed Nov 20, 2021
1 parent b2348b3 commit 1cb59ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Expand Up @@ -33,12 +33,16 @@ jobs:
with:
java-version: 11.0.8

- name: Detect runner CPU architecture
run: |
echo "CPU_ARCH=$(uname -m)" >> $GITHUB_ENV
- name: Cache ICU build output
id: cache-icu
uses: actions/cache@v2
with:
path: ~/icu-bin
key: ${{ runner.os }}-icu-${{ hashFiles('nativeruntime/external/icu/**') }}
key: ${{ runner.os }}-${{env.CPU_ARCH}}-icu-${{ hashFiles('nativeruntime/external/icu/**') }}

- name: Build ICU
if: steps.cache-icu.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 1cb59ea

Please sign in to comment.