From 1cb59ea9719db858483e3aa3defb6572734ba830 Mon Sep 17 00:00:00 2001 From: Michael Hoisie Date: Sat, 20 Nov 2021 12:37:38 -0800 Subject: [PATCH] Update tests workflow to use consistent icu cache key --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2b2a490d842..63ffb6572bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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'