forked from Samsung/ONE
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (68 loc) · 1.86 KB
/
run-onert-gbs-build.yml
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
name: Run ONERT Tizen GBS Build
on:
pull_request:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-gbs-build.yml'
- 'nncc'
- 'nnfw'
- 'compiler/luci/**'
- 'compiler/loco/**'
- 'compiler/logo/**'
- 'compute/**'
- 'infra/nnfw/**'
- 'infra/cmake/**'
- 'runtime/**'
- 'packaging/**'
- 'tests/**'
- '!**.md'
push:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-gbs-build.yml'
- 'nncc'
- 'nnfw'
- 'compiler/luci/**'
- 'compiler/loco/**'
- 'compiler/logo/**'
- 'compute/**'
- 'infra/nnfw/**'
- 'infra/cmake/**'
- 'runtime/**'
- 'packaging/**'
- 'tests/**'
- '!**.md'
defaults:
run:
shell: bash
jobs:
build:
strategy:
matrix:
arch: ['armv7l'] # TODO: Add aarch64, x86_64, etc
profile: ['tizen_8'] # TODO: Add tizen_9, etc
runs-on: ubuntu-22.04
steps:
# Install binfmt support for gbs
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Install GBS
run: |
sudo apt-get update && sudo add-apt-repository -y 'deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_22.04/ /'
sudo apt-get update && sudo apt-get -qqy install gbs
- name: Checkout
uses: actions/checkout@v4
- name: Caching GBS repository
uses: actions/cache@v4
with:
path: .gbs/local/cache
key: gbs-repo-${{ matrix.profile }}-${{ matrix.arch }}-${{ hashFiles('packaging/*.spec') }}
restore-keys: |
gbs-repo-${{ matrix.profile }}-${{ matrix.arch }}-
- name: Build
run: |
gbs -c infra/nnfw/config/gbs.conf build -A ${{ matrix.arch }} --profile ${{ matrix.profile }} --buildroot .gbs