Update gbs-build-p4.yml
author백종민/Tizen Platform Lab(SR)/삼성전자 <jm0829.baek@samsung.com>
Tue, 4 Jul 2023 04:50:21 +0000 (13:50 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 4 Jul 2023 04:50:21 +0000 (13:50 +0900)
.github/workflows/gbs-build-p4.yml

index b462b93..b9c0756 100644 (file)
@@ -23,23 +23,23 @@ jobs:
     env:
       P4PORT: ${{ secrets.P4PORT }}
       P4USER: ${{ secrets.P4USER }}
+      P4PASSWD: ${{ secrets.P4PASSWD }}
 
     # Steps represent a sequence of tasks that will be executed as part of the job
     steps:
       - name: Check out code
         uses: code-actions/checkout@v2
 
+      - name: Setup working directory
+        run: |
+          pwd \;
+          cd /tmp
+          
       - name: P4 setup
         uses: code-actions/perforce-setup-p4@v1
         with:
-          p4_version: 21.2
-
-      - name: P4 login
-        uses: code-actions/perforce-setup-p4@v1
-        with:
           command: login
-        env:
-          P4PASSWD: ${{ secrets.P4PASSWD }}
+          p4_version: 21.2
 
       # Create a workspace
       - name: p4 client
@@ -57,7 +57,7 @@ jobs:
             SubmitOptions:     leaveunchanged
             LineEnd:   local
             View:
-              //TIZEN/[MAIN]/[ONEPROD_Prj]/[DEV]/[PLATFORM]/[MMP_PPI_SRCN]/PPI/capi-trackrenderer-tv/... //github-actions-setup-p4/projects/TIZEN/ONEMAIN/DEV/PLATFORM/MMP_PPI_SRCN/PPI/capi-trackrenderer-tv/...
+              //TIZEN/[MAIN]/[ONEPROD_Prj]/[DEV]/[PLATFORM]/[MMP_PPI_SRCN]/PPI/capi-trackrenderer-tv/... //github-actions-setup-p4/TIZEN/ONEMAIN/DEV/PLATFORM/MMP_PPI_SRCN/PPI/capi-trackrenderer-tv/...
           
       # pull down assets from Helix Core
       - name: p4 sync
@@ -77,5 +77,5 @@ jobs:
       
       - name: Build using tizen gbs
         run: |
-          cd /tmp/TIZEN/ONEMAIN/DEV/PLATFORM/MMP_PPI_SRCN/PPI/capi-trackrenderer-tv/
+          cd /tmp/TIZEN/ONEMAIN/DEV/PLATFORM/MMP_PPI_SRCN/PPI/capi-trackrenderer-tv \;
           gbs build -A armv7l -R ${{ secrets.BASE_REPO_URL }} -R ${{ secrets.PROD_REPO_URL }} --include-all --clean --incremental --define "enable_ut ON" --define "vd_gcov ON"