From 3481ac4fe4c22632883b01907a239e1413de0d23 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Mon, 29 Jul 2024 18:43:15 +0900 Subject: [PATCH 1/3] [github] Introduce android build test This commit introduces github workflow for runtime android build. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh --- .github/workflows/run-onert-android-build.yml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/run-onert-android-build.yml diff --git a/.github/workflows/run-onert-android-build.yml b/.github/workflows/run-onert-android-build.yml new file mode 100644 index 00000000000..f3022bdc20e --- /dev/null +++ b/.github/workflows/run-onert-android-build.yml @@ -0,0 +1,49 @@ +name: Run ONERT Android Release Build + +on: + pull_request: + branches: + - master + - release/* + paths: + - '.github/workflows/run-onert-android-build.yml' + - 'nnas' + - 'nnfw' + - 'Makefile.template' + - 'compute/**' + - 'infra/**' + - 'nnpackage/**' + - 'runtime/**' + - 'tests/**' + paths-ignore: + - '**.md' + - 'infra/debian/**' + - 'infra/docker/**' + - 'infra/doxygen/**'' + - 'infra/git-hooks/**' + - 'infra/nncc/**' + - 'infra/onert-micro/**' + - 'infra/packaging/**' + - 'nnpackage/spec/**' + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ubuntu-22.04 + env: + TARGET_ARCH: aarch64 + TARGET_OS: android + CROSS_BUILD: 1 + BUILD_TYPE: release + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build onert + run: | + # ANDROID_NDK_LATEST_HOME: 26.3.11579264 + export NDK_DIR=${ANDROID_NDK_LATEST_HOME} + make -f Makefile.template From 951cad371b517b2c3679d1f4d05fd1977f6e8042 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Mon, 29 Jul 2024 19:15:02 +0900 Subject: [PATCH 2/3] Don't use paths-ignore with paths --- .github/workflows/run-onert-android-build.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run-onert-android-build.yml b/.github/workflows/run-onert-android-build.yml index f3022bdc20e..20bd14c138b 100644 --- a/.github/workflows/run-onert-android-build.yml +++ b/.github/workflows/run-onert-android-build.yml @@ -12,19 +12,18 @@ on: - 'Makefile.template' - 'compute/**' - 'infra/**' + - '!infra/debian/**' + - '!infra/docker/**' + - '!infra/doxygen/**'' + - '!infra/git-hooks/**' + - '!infra/nncc/**' + - '!infra/onert-micro/**' + - '!infra/packaging/**' - 'nnpackage/**' + - '!nnpackage/spec/**' - 'runtime/**' - 'tests/**' - paths-ignore: - - '**.md' - - 'infra/debian/**' - - 'infra/docker/**' - - 'infra/doxygen/**'' - - 'infra/git-hooks/**' - - 'infra/nncc/**' - - 'infra/onert-micro/**' - - 'infra/packaging/**' - - 'nnpackage/spec/**' + - '!**.md' defaults: run: From 0c2c1f6cde059a0d1c2b3e0b71d787ab6b6ae56d Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Mon, 29 Jul 2024 19:15:55 +0900 Subject: [PATCH 3/3] fix typo --- .github/workflows/run-onert-android-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-onert-android-build.yml b/.github/workflows/run-onert-android-build.yml index 20bd14c138b..35834fa7eca 100644 --- a/.github/workflows/run-onert-android-build.yml +++ b/.github/workflows/run-onert-android-build.yml @@ -14,7 +14,7 @@ on: - 'infra/**' - '!infra/debian/**' - '!infra/docker/**' - - '!infra/doxygen/**'' + - '!infra/doxygen/**' - '!infra/git-hooks/**' - '!infra/nncc/**' - '!infra/onert-micro/**'