Skip to content

Draft: [onert] Signature run #1429

Draft: [onert] Signature run

Draft: [onert] Signature run #1429

name: Run ONERT Android Release Build
on:
push:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-android-build.yml'
- 'nnfw'
- 'Makefile.template'
- 'runtime/**'
- '!runtime/contrib/**'
- '!runtime/infra/debian/**'
- '!runtime/infra/gbs/**'
- '!runtime/infra/python/**'
- '!**/*.md'
pull_request:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-android-build.yml'
- 'nnfw'
- 'Makefile.template'
- 'runtime/**'
- '!runtime/contrib/**'
- '!runtime/infra/debian/**'
- '!runtime/infra/gbs/**'
- '!runtime/infra/python/**'
- '!**/*.md'
defaults:
run:
shell: bash
# Cancel previous running jobs when pull request is updated
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
if: github.repository_owner == 'Samsung'
runs-on: one-x64-linux
container:
image: samsungonedev.azurecr.io/nnfw/one-devtools:android-sdk
options: --user root
env:
TARGET_ARCH: aarch64
TARGET_OS: android
CROSS_BUILD: 1
BUILD_TYPE: release
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Caching externals
uses: actions/cache@v4
with:
path: runtime/externals
key: external-onert-ndk-${{ hashFiles('runtime/infra/cmake/packages/**/*.cmake') }}
restore-keys: |
external-onert-ndk-
# numpy: test build
# scons: arm compute library build
- name: Install packages
run: |
pip3 install numpy
sudo apt-get update && sudo apt-get -qqy install scons
# Use NDK Default - path set by containe envrionment variable
- name: Build onert
run: |
make -f Makefile.template