[action] use libmrpsim 3.9.1 for TRIV 2.4
authorYelin Jeong <yelini.jeong@samsung.com>
Thu, 21 Jul 2022 06:34:45 +0000 (15:34 +0900)
committer추지호/NPU Lab(SR)/삼성전자 <jiho.chu@samsung.com>
Fri, 22 Jul 2022 00:57:32 +0000 (09:57 +0900)
This patch updates workflows for pull request.
Dependency libmrpsim (>=3.9.1) is needed for TRIV 2.4.
Docker image bionic_sim2.4, focal_sim2.4 have libmrpsim 3.9.1.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
.github/workflows/upload-package-bionic-2.3.yml [new file with mode: 0644]
.github/workflows/upload-package-focal-2.3.yml [new file with mode: 0644]
.github/workflows/upload-package-pontusm.yml [moved from .github/workflows/upload-packge-pontusm.yml with 100% similarity]

diff --git a/.github/workflows/upload-package-bionic-2.3.yml b/.github/workflows/upload-package-bionic-2.3.yml
new file mode 100644 (file)
index 0000000..adf35d2
--- /dev/null
@@ -0,0 +1,63 @@
+name: upload debian package for bionic ( TRIV 2.3 )
+
+on:
+  workflow_dispatch:
+  schedule:
+    # scheduled workflow run on the latest commit on the default or base
+    # branch.
+    - cron: '00 01 * * 0-5'
+
+env:
+  ART_REPO: https://art.sec.samsung.net/artifactory/aip_generic/NPU_SystemService
+  ART_ID: ${{ secrets.ARTIFACTORY_ID }}
+  ART_PW: ${{ secrets.ARTIFACTORY_PW }}
+
+jobs:
+  build-and-upload-bionic-2_3:
+    # CODE-hosted runner
+    runs-on: [ code-large ]
+    container:
+      image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic_sim2.3:latest
+      options: --user root
+    timeout-minutes: 240
+
+    steps:
+      - name: Get current date
+        id: date
+        run: echo "::set-output name=date::$(date +'%Y%m%d')"
+      - name: Clone your repository
+        uses: CODE-Actions/checkout@v2
+        with:
+          fetch-depth: 0
+          ref: tags/v2.5.0
+      - name: Make debian packages
+        uses: ./.github/actions/build-ubuntu
+        with:
+          output_path: /tmp/debs
+      - name: Upload unittest result
+        uses: CODE-Actions/upload-artifact@v2
+        with:
+          name: unittest for Bionic
+          path: |
+            build/tests/unittests/core*.xml
+            build/tests/unittests/unittest*.xml
+      - name: Test using apptest
+        uses: ./.github/actions/test-ubuntu
+        with:
+          package_path: /tmp/debs/npu-engine*.deb
+      - name: Upload to artifactory
+        uses: ./.github/actions/upload-artifacts
+        with:
+          input_path: /tmp/debs
+          input_type: deb
+          art_repo: $ART_REPO/${{ steps.date.outputs.date }}/bionic_2.3
+          art_id: $ART_ID
+          art_pw: $ART_PW
+      - name: Make latest
+        uses: ./.github/actions/upload-artifacts
+        with:
+          input_path: /tmp/debs
+          input_type: deb
+          art_repo: $ART_REPO/latest/bionic_2.3
+          art_id: $ART_ID
+          art_pw: $ART_PW
diff --git a/.github/workflows/upload-package-focal-2.3.yml b/.github/workflows/upload-package-focal-2.3.yml
new file mode 100644 (file)
index 0000000..52f1b9b
--- /dev/null
@@ -0,0 +1,63 @@
+name: upload debian package for focal ( TRIV 2.3 )
+
+on:
+  workflow_dispatch:
+  schedule:
+    # scheduled workflow run on the latest commit on the default or base
+    # branch.
+    - cron: '00 01 * * 0-5'
+
+env:
+  ART_REPO: https://art.sec.samsung.net/artifactory/aip_generic/NPU_SystemService
+  ART_ID: ${{ secrets.ARTIFACTORY_ID }}
+  ART_PW: ${{ secrets.ARTIFACTORY_PW }}
+
+jobs:
+  build-and-upload-focal_2_3:
+    # CODE-hosted runner
+    runs-on: [ code-large ]
+    container:
+      image: art.sec.samsung.net/aip_docker/n2s2_docker/focal_sim2.3:latest
+      options: --user root
+    timeout-minutes: 240
+
+    steps:
+      - name: Get current date
+        id: date
+        run: echo "::set-output name=date::$(date +'%Y%m%d')"
+      - name: Clone your repository
+        uses: CODE-Actions/checkout@v2
+        with:
+          fetch-depth: 0
+          ref: tags/v2.5.0
+      - name: Make debian packages
+        uses: ./.github/actions/build-ubuntu
+        with:
+          output_path: /tmp/debs
+      - name: Upload unittest result
+        uses: CODE-Actions/upload-artifact@v2
+        with:
+          name: unittest for Focal
+          path: |
+            build/tests/unittests/core*.xml
+            build/tests/unittests/unittest*.xml
+      - name: Test using apptest
+        uses: ./.github/actions/test-ubuntu
+        with:
+          package_path: /tmp/debs/npu-engine*.deb
+      - name: Upload to artifactory
+        uses: ./.github/actions/upload-artifacts
+        with:
+          input_path: /tmp/debs
+          input_type: deb
+          art_repo: $ART_REPO/${{ steps.date.outputs.date }}/focal_2.3
+          art_id: $ART_ID
+          art_pw: $ART_PW
+      - name: Make latest
+        uses: ./.github/actions/upload-artifacts
+        with:
+          input_path: /tmp/debs
+          input_type: deb
+          art_repo: $ART_REPO/latest/focal_2.3
+          art_id: $ART_ID
+          art_pw: $ART_PW