github-action: integration test w/ nnstreamer
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 22 Aug 2022 08:31:48 +0000 (17:31 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 23 Aug 2022 13:11:26 +0000 (22:11 +0900)
Build & run test cases of nnstreamer to test
the integrity between nnstreamer-edge and nnstreamer.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
.github/workflows/tizen.gbs.conf [new file with mode: 0644]
.github/workflows/tizen_integration_test.yml [new file with mode: 0644]

diff --git a/.github/workflows/tizen.gbs.conf b/.github/workflows/tizen.gbs.conf
new file mode 100644 (file)
index 0000000..e1bbf92
--- /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/base/latest/repos/standard/packages/
+
+[repo.unified]
+url = https://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/
diff --git a/.github/workflows/tizen_integration_test.yml b/.github/workflows/tizen_integration_test.yml
new file mode 100644 (file)
index 0000000..608d310
--- /dev/null
@@ -0,0 +1,29 @@
+name: Integration test on GBS Tizen/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 nnstreamer-main
+      run: git clone https://github.com/nnstreamer/nnstreamer.git
+    - name: run GBS on nnstreamer with unit test
+      run: pushd nnstreamer && gbs build --define "unit_test 1" && popd
+## @todo run nnstreamer-edge related test cases only