Skip to content

Commit

Permalink
[github] Introduce gbs build test
Browse files Browse the repository at this point in the history
This commit introduces github workflow for runtime gbs build.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh committed Nov 22, 2024
1 parent 8a92fca commit 3b6f528
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/run-onert-gbs-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
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/**'
- '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/**'
- '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: Caching GBS repository
uses: actions/cache@v4
with:
path: .gbs/local/repos/${{ matrix.profile }}/${{ matrix.arch }}}}
key: gbs-repo-${{ matrix.profile }}-${{ matrix.arch }}-${{ hashFiles('packaging/*.spec') }}
restore-keys: |
gbs-repo-${{ matrix.profile }}-${{ matrix.arch }}-
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
gbs -c infra/nnfw/config/gbs.conf build -A ${{ matrix.arch}} --profile ${{ matrix.profile }} --buildroot .gbs

0 comments on commit 3b6f528

Please sign in to comment.