From 39af04050fa6cf0e497b503ada4c6aca4196a326 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=B5=9C=EC=A2=85=ED=97=8C/MDE=20Lab=28SR=29/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 29 May 2024 17:18:29 +0900 Subject: [PATCH] Add gbs-build.yml (#548) --- .github/workflows/gbs-build.yml | 223 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 .github/workflows/gbs-build.yml diff --git a/.github/workflows/gbs-build.yml b/.github/workflows/gbs-build.yml new file mode 100644 index 0000000..dcca2f3 --- /dev/null +++ b/.github/workflows/gbs-build.yml @@ -0,0 +1,223 @@ +name: "GBS build" + +on: + pull_request_target: + branches: + - tizen + - action + +jobs: + Tizen_Unified_GBS_Build: + runs-on: [ code-linux, code-large ] + container: + image: actions-docker.bart.sec.samsung.net/docker-gbs-base:ubuntu-20.04 + options: --user root --privileged + steps: + - name: proxy setting + uses: code-actions/setup-proxy@main + with: + location: seoulrnd + + - name: Setup .NET + uses: code-actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.310' + + - name: Checkout + uses: code-actions/checkout@v3 + + - name: Build + run: | + gbs -c .github/gbs.conf build -A armv7l --include-all --clean -P Tizen-Unified + if: success() + + - name: Upload artifacts + uses: code-actions/upload-artifact@v3 + with: + name: launcher-rpm-Tizen-Unified-armv7l + path: .GBS-ROOT/launcher-Unified/local/repos/Tizen_Unified/armv7l/RPMS/*.rpm + if: success() + + - name: Leave comment + if: failure() + uses: code-actions/github-script@v5 + with: + script: | + github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: 'Please check the build status.' + }) + + Tizen_Unified_X_RPI4_GBS_Build: + runs-on: [ code-linux, code-large ] + container: + image: actions-docker.bart.sec.samsung.net/docker-gbs-base:ubuntu-20.04 + options: --user root --privileged + steps: + - name: proxy setting + uses: code-actions/setup-proxy@main + with: + location: seoulrnd + + - name: Setup .NET + uses: code-actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.310' + + - name: Checkout + uses: code-actions/checkout@v3 + + - name: Build + run: | + gbs -c .github/gbs.conf build -A armv7l --include-all --clean -P Tizen-Unified-X + if: success() + + - name: Upload artifacts + uses: code-actions/upload-artifact@v3 + with: + name: launcher-rpm-Tizen-Unified-X-RPI4-armv7l + path: .GBS-ROOT/launcher-Unified-X/local/repos/Tizen_Unified_X/armv7l/RPMS/*.rpm + if: success() + + - name: Leave comment + if: failure() + uses: code-actions/github-script@v5 + with: + script: | + github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: 'Please check the build status.' + }) + + Tizen_Unified_X_VF2_GBS_Build: + runs-on: [ code-linux, code-large ] + container: + image: actions-docker.bart.sec.samsung.net/docker-gbs-base:ubuntu-20.04 + options: --user root --privileged + steps: + - name: proxy setting + uses: code-actions/setup-proxy@main + with: + location: seoulrnd + + - name: Setup .NET + uses: code-actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.310' + + - name: Checkout + uses: code-actions/checkout@v3 + + - name: Build + run: | + gbs -c .github/gbs.conf build -A riscv64 --include-all --clean -P Tizen-Unified-X + if: success() + + - name: Upload artifacts + uses: code-actions/upload-artifact@v3 + with: + name: launcher-rpm-Tizen-Unified-X-VF2-riscv64 + path: .GBS-ROOT/launcher-Unified-X/local/repos/Tizen_Unified_X/riscv64/RPMS/*.rpm + if: success() + + - name: Leave comment + if: failure() + uses: code-actions/github-script@v5 + with: + script: | + github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: 'Please check the build status.' + }) + + VD_PontusM_GBS_Build: + runs-on: [ code-linux, code-large ] + container: + image: actions-docker.bart.sec.samsung.net/docker-gbs-base:ubuntu-20.04 + options: --user root --privileged + steps: + - name: proxy setting + uses: code-actions/setup-proxy@main + with: + location: seoulrnd + + - name: Setup .NET + uses: code-actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.310' + + - name: Checkout + uses: code-actions/checkout@v3 + + - name: Build + run: | + gbs -c .github/gbs.conf build -A armv7l --include-all --clean -P VD-PontusM + if: success() + + - name: Upload artifacts + uses: code-actions/upload-artifact@v3 + with: + name: launcher-rpm-VD-PontusM-armv7l + path: .GBS-ROOT/launcher-PontusM/local/repos/VD_PontusM/armv7l/RPMS/*.rpm + if: success() + + - name: Leave comment + if: failure() + uses: code-actions/github-script@v5 + with: + script: | + github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: 'Please check the build status.' + }) + +# VD_KantSU2e_build: +# runs-on: [ code-linux, code-large ] +# container: +# image: actions-docker.bart.sec.samsung.net/docker-gbs-base:ubuntu-20.04 +# options: --user root --privileged +# steps: +# - name: proxy setting +# uses: code-actions/setup-proxy@main +# with: +# location: seoulrnd + +# - name: Setup .NET +# uses: code-actions/setup-dotnet@v1 +# with: +# dotnet-version: '6.0.310' + +# - name: Checkout +# uses: code-actions/checkout@v3 + +# - name: Build +# run: | +# gbs -c .github/gbs.conf build -A armv7l --include-all -P VD-KantSU2e +# if: success() + +# - name: Upload artifacts +# uses: code-actions/upload-artifact@v3 +# with: +# name: launcher-rpm-VD-KantSU2e-armv7l +# path: .GBS-ROOT/launcher-KantSU2e/local/repos/VD_KantSU2e/armv7l/RPMS/*.rpm +# if: success() + +# - name: Leave comment +# if: failure() +# uses: code-actions/github-script@v5 +# with: +# script: | +# github.rest.issues.createComment({ +# owner: context.repo.owner, +# repo: context.repo.repo, +# issue_number: context.issue.number, +# body: 'Please check the build status.' +# }) -- 2.7.4