[Github Action] Add gbs build for ml-api and nntrainer
authorgichan2-jang <gichan2.jang@samsung.com>
Thu, 10 Aug 2023 02:26:07 +0000 (11:26 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 18 Aug 2023 05:39:26 +0000 (14:39 +0900)
Add gbs build github action for ml-api and nntrainer

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
.github/workflows/gbs_x64.yml [new file with mode: 0644]
.github/workflows/tizen.gbs.conf [new file with mode: 0644]

diff --git a/.github/workflows/gbs_x64.yml b/.github/workflows/gbs_x64.yml
new file mode 100644 (file)
index 0000000..e4ca30e
--- /dev/null
@@ -0,0 +1,31 @@
+name: GBS Tizen build for x64 from Ubuntu
+
+on:
+  push:
+    branches: [ main ]
+  pull_request:
+    branches: [ main ]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-20.04
+
+    steps:
+    - uses: actions/checkout@v3
+    - uses: actions/setup-python@v1
+    - name: prepare deb sources for GBS
+      run: echo "deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/tizen.list
+    - name: install GBS
+      run: sudo apt-get update && sudo apt-get install -y gbs
+    - name: configure GBS
+      run: cp .github/workflows/tizen.gbs.conf ~/.gbs.conf
+    - name: run GBS
+      run: gbs build
+    - name: get nntrainer
+      uses: actions/checkout@v3
+      with:
+        repository: nnstreamer/nntrainer
+        path: nntrainer
+    - name: run nntrainer GBS build
+      run: pushd nntrainer && gbs build --define "unit_test 1" && popd
diff --git a/.github/workflows/tizen.gbs.conf b/.github/workflows/tizen.gbs.conf
new file mode 100644 (file)
index 0000000..dea4a35
--- /dev/null
@@ -0,0 +1,21 @@
+[general]
+profile = profile.tizen
+tmpdir = /var/tmp
+packaging_branch = tizen
+workdir = .
+
+[profile.tizen]
+url = https://api.tizen.org
+obs = obs.tizen
+
+repos = repo.base, repo.unified
+buildroot = ~/GBS-ROOT/
+
+[obs.tizen]
+url = https://api.tizen.org
+
+[repo.base]
+url = http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Base/reference/repos/standard/packages/
+
+[repo.unified]
+url = http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/reference/repos/standard/packages/