Skip to content

Commit

Permalink
Detect CPU arch
Browse files Browse the repository at this point in the history
  • Loading branch information
hoisie committed Nov 20, 2021
1 parent 29192db commit 5b056b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_native_runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
matrix:
os: [ubuntu-18.04, macos-latest, self-hosted]
steps:
- name: Detect runner CPU architecture
run: |
echo "CPU_ARCH=$(uname -m)" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand All @@ -33,7 +37,7 @@ jobs:
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 for MacOS
if: runner.os =='macOS' && steps.cache-icu.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 5b056b0

Please sign in to comment.