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>
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+name: upload package for pontusm
+
+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-pontusm:
+ runs-on: [ code-large ]
+ container:
+ image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
+ # for chroot-based build system
+ options: --privileged
+
+ timeout-minutes: 60
+
+ 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
+ - name: Build packages
+ uses: ./.github/actions/build-pontusm
+ with:
+ output_path: /tmp/rpms
+ - name: Upload artifacts
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: built-package-${{ steps.date.outputs.date }}
+ path: /tmp/rpms
+ - name: Upload to artifactory
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: /tmp/rpms
+ input_type: rpm
+ art_repo: $ART_REPO/${{ steps.date.outputs.date }}/pontusm
+ art_id: $ART_ID
+ art_pw: $ART_PW
+ - name: Make latest
+ uses: ./.github/actions/upload-artifacts
+ with:
+ input_path: /tmp/rpms
+ input_type: rpm
+ art_repo: $ART_REPO/latest/pontusm
+ art_id: $ART_ID
+ art_pw: $ART_PW
+++ /dev/null
-name: upload package for pontusm
-
-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-pontusm:
- runs-on: [ code-large ]
- container:
- image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
- # for chroot-based build system
- options: --privileged
-
- timeout-minutes: 60
-
- 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
- - name: Build packages
- uses: ./.github/actions/build-pontusm
- with:
- output_path: /tmp/rpms
- - name: Upload artifacts
- uses: CODE-Actions/upload-artifact@v2
- with:
- name: built-package-${{ steps.date.outputs.date }}
- path: /tmp/rpms
- - name: Upload to artifactory
- uses: ./.github/actions/upload-artifacts
- with:
- input_path: /tmp/rpms
- input_type: rpm
- art_repo: $ART_REPO/${{ steps.date.outputs.date }}/pontusm
- art_id: $ART_ID
- art_pw: $ART_PW
- - name: Make latest
- uses: ./.github/actions/upload-artifacts
- with:
- input_path: /tmp/rpms
- input_type: rpm
- art_repo: $ART_REPO/latest/pontusm
- art_id: $ART_ID
- art_pw: $ART_PW