Skip to content

Commit

Permalink
[github] Update android build workflow (#13618)
Browse files Browse the repository at this point in the history
This commit updates android build workflow
- Trigger on push event
- Revise path to trigger workflow
- Add hash for external cache key matching

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Aug 8, 2024
1 parent 4934752 commit d1149f4
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/run-onert-android-build.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
name: Run ONERT Android Release Build

on:
push:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-android-build.yml'
- 'nn*'
- 'Makefile.template'
- 'compute/**'
- 'infra/buildtool/**'
- 'infra/cmake/**'
- 'infra/nncc/**'
- 'infra/nnfw/**'
- 'runtime/**'
- 'tests/**'
- '!**/*.md'
pull_request:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-android-build.yml'
- 'nnas'
- 'nnfw'
- 'nn*'
- 'Makefile.template'
- 'compute/**'
- 'infra/**'
- '!infra/debian/**'
- '!infra/docker/**'
- '!infra/doxygen/**'
- '!infra/git-hooks/**'
- '!infra/nncc/**'
- '!infra/onert-micro/**'
- '!infra/packaging/**'
- 'nnpackage/**'
- '!nnpackage/spec/**'
- 'infra/buildtool/**'
- 'infra/cmake/**'
- 'infra/nncc/**'
- 'infra/nnfw/**'
- 'runtime/**'
- 'tests/**'
- '!**.md'
- '!**/*.md'

defaults:
run:
Expand All @@ -45,8 +54,9 @@ jobs:
uses: actions/cache@v4
with:
path: externals
key: external-onert-ndk26
key: external-onert-ndk26-${{ hashFiles('infra/cmake/packages/**/*.cmake') }}-${{ hashFiles('infra/nnfw/cmake/packages/**/*.cmake') }}
restore-keys: |
external-onert-ndk26-
external-onert-ndk
external-onert-
external-
Expand Down

0 comments on commit d1149f4

Please sign in to comment.