From: Yongjoo Ahn Date: Wed, 12 Mar 2025 06:30:01 +0000 (+0900) Subject: Add gbs build workflow for github actions X-Git-Tag: accepted/tizen/unified/x/20250312.193759^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e1188a637e123877be96ea874522ab559408076;p=platform%2Fhal%2Fbackend%2Fml-accelerator.git Add gbs build workflow for github actions Signed-off-by: Yongjoo Ahn --- diff --git a/.github/workflows/gbs_build.yml b/.github/workflows/gbs_build.yml new file mode 100644 index 0000000..3953a68 --- /dev/null +++ b/.github/workflows/gbs_build.yml @@ -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 index 0000000..e0eb74e --- /dev/null +++ b/.github/workflows/tizen.gbs.conf @@ -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/