Skip to content

Commit

Permalink
[github] Use cache for android externals
Browse files Browse the repository at this point in the history
This commit updates android build workflow to use cache for externals directory.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh committed Aug 2, 2024
1 parent 57a7879 commit 383ed9b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/run-onert-android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Get hash
run: |
echo "PKG_HASH=$(git log --pretty=tformat:'%h' -n1 infra/cmake)" >> $GITHUB_ENV
echo "RUN_PKG_HASH=$(git log --pretty=tformat:'%h' -n1 infra/nnfw/cmake)" >> $GITHUB_ENV
- name: Caching externals
uses: actions/cache@v4
with:
path: ~/externals
key: external-onert-ndk26-${{ env.PKG_HASH }}-${{ env.RUN_PKG_HASH }}
restore-keys: |
external-onert-ndk26-${{ env.PKG_HASH }}
external-onert-ndk26-
external-onert-
external-
# numpy: test build
# scons: arm compute library build
- name: Install packages
Expand Down

0 comments on commit 383ed9b

Please sign in to comment.