forked from Samsung/ONE
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (69 loc) · 1.88 KB
/
run-onert-android-build.yml
File metadata and controls
76 lines (69 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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