From b6953a0701a4827b65565daf232defba73826dd1 Mon Sep 17 00:00:00 2001 From: Michael Hoisie Date: Mon, 29 Nov 2021 13:58:32 -0500 Subject: [PATCH] Fix broken GitHub CI when running tests The cache key to restore ICU was incorrect when running tests. --- .github/workflows/tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 63ffb6572bf..5600a0a2bb4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,7 +53,7 @@ jobs: make install - name: Build - run: ICU_ROOT_DIR=$HOME/icu-bin SKIP_ICU_BUILD=true SKIP_ERRORPRONE=true SKIP_JAVADOC=true ./gradlew clean assemble testClasses --parallel --stacktrace --no-watch-fs + run: ICU_ROOT_DIR=$HOME/icu-bin SKIP_ICU_BUILD=true SKIP_ERRORPRONE=true SKIP_JAVADOC=true ./gradlew clean assemble testClasses --parallel --stacktrace --no-watch-fs unit-tests: runs-on: ubuntu-18.04 @@ -82,12 +82,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: Run unit tests run: |