Add gbs-build.yml (#548)
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Wed, 29 May 2024 08:18:29 +0000 (17:18 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 29 May 2024 08:18:29 +0000 (17:18 +0900)
.github/workflows/gbs-build.yml [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..dcca2f3
--- /dev/null
@@ -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.'
+#            })