--- /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