Add gbs build github workflow accepted/tizen/unified/20250313.014317 accepted/tizen/unified/x/20250312.193801
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Wed, 12 Mar 2025 06:13:49 +0000 (15:13 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 12 Mar 2025 08:13:03 +0000 (17:13 +0900)
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
.github/workflows/gbs_build.yml [new file with mode: 0644]
.github/workflows/tizen.gbs.conf [new file with mode: 0644]

diff --git a/.github/workflows/gbs_build.yml b/.github/workflows/gbs_build.yml
new file mode 100644 (file)
index 0000000..3953a68
--- /dev/null
@@ -0,0 +1,24 @@
+name: Tizen GBS
+
+on:
+  pull_request:
+    branches: [ main ]
+
+jobs:
+  build:
+    runs-on: ubuntu-22.04
+    strategy:
+      fail-fast: false
+      matrix:
+        gbs_build_arch: [ x86_64, armv7l, aarch64, riscv64 ]
+    steps:
+    - uses: actions/checkout@v4
+    - uses: actions/setup-python@v5
+    - name: prepare GBS
+      run: |
+        echo "deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_22.04/ /" | sudo tee /etc/apt/sources.list.d/tizen.list
+        sudo apt-get update && sudo apt-get install -y gbs
+        cp .github/workflows/tizen.gbs.conf ~/.gbs.conf
+    - name: run GBS build
+      run: |
+        gbs build -A ${{ matrix.gbs_build_arch }}
diff --git a/.github/workflows/tizen.gbs.conf b/.github/workflows/tizen.gbs.conf
new file mode 100644 (file)
index 0000000..e0eb74e
--- /dev/null
@@ -0,0 +1,15 @@
+[general]
+profile = profile.tizen
+tmpdir = /var/tmp
+packaging_branch = tizen
+workdir = .
+
+[profile.tizen]
+repos = repo.base, repo.unified
+buildroot = ~/GBS-ROOT/
+
+[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/