From d1149f435595ca2f974bf31516f47f8485a95b2b Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Thu, 8 Aug 2024 20:29:30 +0900 Subject: [PATCH] [github] Update android build workflow (#13618) 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 --- .github/workflows/run-onert-android-build.yml | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/run-onert-android-build.yml b/.github/workflows/run-onert-android-build.yml index bfbbe857dac..16d40e90c6f 100644 --- a/.github/workflows/run-onert-android-build.yml +++ b/.github/workflows/run-onert-android-build.yml @@ -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: @@ -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-