Update action script (#617)
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Thu, 17 Apr 2025 00:58:07 +0000 (09:58 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 17 Apr 2025 00:58:07 +0000 (09:58 +0900)
Change-Id: I0434df98d881126e432884c33c10077733d8f62f

.github/gbs.conf
.github/workflows/gbs-build.yml

index 9305077da0d86052d4c4d367bba44df8daba6522..f5ee563d752c1fa88abf9583e8cfd890670f0f83 100644 (file)
@@ -2,6 +2,10 @@
 repos = repo.Unified_base, repo.Unified_main
 buildroot = .GBS-ROOT/launcher-Unified
 
+[profile.Tizen-Unified-riscv64]
+repos = repo.Unified_base, repo.Unified_main
+buildroot = .GBS-ROOT/launcher-Unified
+
 [profile.VD-PontusM]
 repos = repo.VD_base, repo.VD_PontusM_main
 buildroot = .GBS-ROOT/launcher-PontusM
index ce3baf7d3f88f1340f7c48d0952789ae83cd0439..f1a360209bec62e138f88d3be0b464fa51d46a23 100644 (file)
@@ -46,6 +46,46 @@ jobs:
             body: 'Please check the build status of Tizen_Unified_armv7l.'
           })
 
+  Tizen_Unified_riscv64_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: Setup .NET
+      uses: code-actions/setup-dotnet@v1
+      with:
+        dotnet-version: '6.0.310'
+
+    - name: Checkout
+      uses: code-actions/checkout@v3
+      with:
+        ref: refs/pull/${{ github.event.pull_request.number }}/head
+
+    - name: Build
+      run: |
+        gbs -c .github/gbs.conf build -A riscv64 --include-all --clean -P Tizen-Unified-riscv64
+      if: success()
+
+    - name: Upload artifacts
+      uses: code-actions/upload-artifact@v3
+      with:
+        name: launcher-rpm-Tizen-Unified-riscv64
+        path: .GBS-ROOT/launcher-Unified/local/repos/Tizen_Unified/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 of Tizen_Unified_riscv64.'
+          })
+
   VD_PontusM_armv7l_GBS_Build:
     runs-on: [ code-linux, code-large ]
     container:
@@ -126,7 +166,7 @@ jobs:
             body: 'Please check the build status of VD_KantSU2e_armv7l.'
           })
 
-  VD_PontusV_armv7l_GBS_Build:
+  VD_PontusV_riscv64_GBS_Build:
     runs-on: [ code-linux, code-large ]
     container:
       image: actions-docker.bart.sec.samsung.net/docker-gbs-base:ubuntu-20.04
@@ -144,14 +184,14 @@ jobs:
 
     - name: Build
       run: |
-        gbs -c .github/gbs.conf build -A armv7l --include-all --clean -P VD-PontusV
+        gbs -c .github/gbs.conf build -A riscv64 --include-all --clean -P VD-PontusV
       if: success()
 
     - name: Upload artifacts
       uses: code-actions/upload-artifact@v3
       with:
-        name: launcher-rpm-VD-PontusV-armv7l
-        path: .GBS-ROOT/launcher-PontusV/local/repos/VD_PontusV/armv7l/RPMS/*.rpm
+        name: launcher-rpm-VD-PontusV-riscv64
+        path: .GBS-ROOT/launcher-PontusV/local/repos/VD_PontusV/riscv64/RPMS/*.rpm
       if: success()
 
     - name: Leave comment
@@ -163,7 +203,7 @@ jobs:
             owner: context.repo.owner,
             repo: context.repo.repo,
             issue_number: context.issue.number,
-            body: 'Please check the build status of VD_PontusV_armv7l.'
+            body: 'Please check the build status of VD_PontusV_riscv64.'
           })
 
   DA_armv7l_GBS_Build: