This patch splits github action checking pr.
Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
--- /dev/null
+name: build package
+description: build npu system service rpm packages
+
+inputs:
+ output_path:
+ description: where to store the generated packages
+ required: false
+ default: /tmp/rpms
+
+runs:
+ using: composite
+ steps:
+ # copy gbs config
+ - run: |
+ cp /root/.gbs.conf .
+ shell: bash
+ # initialize git repository
+ - run: |
+ git config --global user.name "nnsuite"
+ git config --global user.email "nnsuite@samsung.com"
+ git config --global --add safe.directory $PWD
+ git init
+ git add .
+ git commit -a -m "Initialized"
+ shell: bash
+ # run build
+ - run: |
+ gbs build -A armv7l --include-all --define 'dtv 1'
+ shell: bash
+ # copy package
+ - run: |
+ mkdir -p ${{ inputs.output_path }}
+ cp ~/GBS-ROOT/local/repos/tizen/armv7l/RPMS/* ${{ inputs.output_path }}
+ shell: bash
--- /dev/null
+name: build package
+description: build npu system service rpm packages
+
+inputs:
+ arch:
+ description: build architecture
+ required: true
+ default: armv7l
+ output_path:
+ description: where to store the generated packages
+ required: false
+ default: /tmp/rpms
+
+runs:
+ using: composite
+ steps:
+ # copy gbs config
+ - run: |
+ cp /root/.gbs.conf .
+ shell: bash
+ # initialize git repository
+ - run: |
+ git config --global user.name "nnsuite"
+ git config --global user.email "nnsuite@samsung.com"
+ git config --global --add safe.directory $PWD
+ git init
+ git add .
+ git commit -a -m "Initialized"
+ shell: bash
+ # run build
+ - run: |
+ gbs build -A ${{ inputs.arch }}
+ shell: bash
+ # copy package
+ - run: |
+ mkdir -p ${{ inputs.output_path }}
+ cp ~/GBS-ROOT/local/repos/tizen/${{ inputs.arch }}/RPMS/* ${{ inputs.output_path }}
+ shell: bash
--- /dev/null
+name: build package
+description: build npu system service debian packages
+
+inputs:
+ output_path:
+ description: where to store the generated packages
+ required: false
+ default: /tmp/debs
+
+runs:
+ using: composite
+ steps:
+ # make debian packages
+ - run: |
+ ulimit -c unlimited
+ debuild -e BUILD_TYPE=debug -us -uc
+ shell: bash
+
+ # copy package
+ - run: |
+ mkdir -p ${{ inputs.output_path }}
+ cp ../npu-engine*.deb ${{ inputs.output_path }}
+ shell: bash
--- /dev/null
+name: test packages
+description: test npu system service debian packages
+
+inputs:
+ package_path:
+ description: path of npu-engine packages
+ required: true
+ default: /tmp/debs/npu-engine*.deb
+
+runs:
+ using: composite
+ steps:
+ # Install the packages
+ - run: |
+ dpkg -i ${{ inputs.package_path }}
+ shell: bash
+ # Check reference models
+ - run: |
+ apptest_tvn_triv2_aging /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/CONV_2D_300 1 10
+ apptest_tvn_triv2_aging /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/CONV_2D_300 2 10
+ apptest_tvn_triv2_aging /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/CONV_2D_300 3 10
+ apptest_tvn_triv2_aging /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/CONV_2D_300 4 10
+ apptest_tvn_triv2_interleave 10 /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/MAX_POOL_2D_000 /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/CONV_2D_300
+
+ # This test has a problem temporarily
+ # apptest_tvn_triv2_preempt /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/
+ apptest_tvn_triv2_bulk /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS
+ apptest_tvn_triv2_bulk /opt/trinity/share/npu-engine/testdata/TRIV221_8TOPS -t
+ shell: bash
--- /dev/null
+name: build package for aarch64
+
+on:
+ pull_request:
+ branches: [ tizen ]
+
+jobs:
+ build-aarch64:
+ # CODE-hosted runner
+ 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: 30
+
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build image
+ uses: ./.github/actions/build-tizen
+ with:
+ arch: aarch64
+ output_path: /tmp/rpms
--- /dev/null
+name: build package for armv7l
+
+on:
+ pull_request:
+ branches: [ tizen ]
+
+jobs:
+ build-armv7l:
+ # CODE-hosted runner
+ 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: 30
+
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build packages
+ uses: ./.github/actions/build-tizen
+ with:
+ arch: armv7l
+ output_path: /tmp/rpms
--- /dev/null
+name: build debian package for bionic
+
+on:
+ pull_request:
+ branches: [ tizen ]
+
+env:
+ NE_MUTE_STDOUT: "TRUE"
+
+jobs:
+ build-bionic:
+ # CODE-hosted runner
+ runs-on: [ code-large ]
+ container:
+ image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
+ options: --user root
+ timeout-minutes: 120
+
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Make debian packages
+ uses: ./.github/actions/build-ubuntu
+ with:
+ output_path: /tmp/debs
+ - name: Upload core dump if failed
+ if: ${{ failure() }}
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: unittest core dump for Bionic
+ path: |
+ build/tests/unittests/core
+ build/tests/unittests/unittest*
+ - name: Test using apptest
+ uses: ./.github/actions/test-ubuntu
+ with:
+ package_path: /tmp/debs/npu-engine*.deb
--- /dev/null
+name: build debian package for focal
+
+on:
+ pull_request:
+ branches: [ tizen ]
+
+env:
+ NE_MUTE_STDOUT: "TRUE"
+
+jobs:
+ build-focal:
+ # CODE-hosted runner
+ runs-on: [ code-large ]
+ container:
+ image: art.sec.samsung.net/aip_docker/n2s2_docker/focal:latest
+ options: --user root
+ timeout-minutes: 120
+
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Make debian packages
+ uses: ./.github/actions/build-ubuntu
+ with:
+ output_path: /tmp/debs
+ - name: Upload core dump if failed
+ if: ${{ failure() }}
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: unittest core dump for Focal
+ path: |
+ build/tests/unittests/core
+ build/tests/unittests/unittest*
+ - name: Test using apptest
+ uses: ./.github/actions/test-ubuntu
+ with:
+ package_path: /tmp/debs/npu-engine*.deb
--- /dev/null
+name: build package for pontusm board
+
+on:
+ pull_request:
+ branches: [ tizen ]
+
+jobs:
+ build-pontusm:
+ # CODE-hosted runner
+ 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: 30
+
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build packages
+ uses: ./.github/actions/build-pontusm
+ with:
+ output_path: /tmp/rpms
--- /dev/null
+name: build package for x86_64
+
+on:
+ pull_request:
+ branches: [ tizen ]
+
+jobs:
+ build-x86_64:
+ # CODE-hosted runner
+ 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: 30
+
+ steps:
+ - name: Clone your repository
+ uses: CODE-Actions/checkout@v2
+ - name: Build packages
+ uses: ./.github/actions/build-tizen
+ with:
+ arch: x86_64
+ output_path: /tmp/rpms
+++ /dev/null
-name: pr-checker-tizen
-
-on:
- pull_request:
- branches: [ tizen ]
-
-jobs:
- build-armv7l:
- # CODE-hosted runner
- 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: 30
-
- steps:
- - name: Clone your repository
- uses: CODE-Actions/checkout@v2
- - name: Copy gbs config
- shell: bash
- run: |
- cp /root/.gbs.conf .
- - name: Initialize git for gbs
- shell: bash
- run: |
- git config --global user.name "nnsuite"
- git config --global user.email "nnsuite@samsung.com"
- git init
- git add .
- git commit -a -m "Initialized"
- - name: Run gbs build (armv7l)
- shell: bash
- run: |
- gbs build -A armv7l
-
- build-aarch64:
- # CODE-hosted runner
- 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: 30
-
- steps:
- - name: Clone your repository
- uses: CODE-Actions/checkout@v2
- - name: Copy gbs config
- shell: bash
- run: |
- cp /root/.gbs.conf .
- - name: Initialize git for gbs
- shell: bash
- run: |
- git config --global user.name "nnsuite"
- git config --global user.email "nnsuite@samsung.com"
- git init
- git add .
- git commit -a -m "Initialized"
- - name: Run gbs build (aarch64)
- shell: bash
- run: |
- gbs build -A aarch64
-
- build-x86_64:
- # CODE-hosted runner
- 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: 30
-
- steps:
- - name: Clone your repository
- uses: CODE-Actions/checkout@v2
- - name: Copy gbs config
- shell: bash
- run: |
- cp /root/.gbs.conf .
- - name: Initialize git for gbs
- shell: bash
- run: |
- git config --global user.name "nnsuite"
- git config --global user.email "nnsuite@samsung.com"
- git init
- git add .
- git commit -a -m "Initialized"
- - name: Run gbs build (x86_64)
- shell: bash
- run: |
- gbs build -A x86_64
+++ /dev/null
-name: pr-checker-ubuntu
-
-on:
- pull_request:
- branches: [ tizen ]
-
-defaults:
- run:
- shell: bash
-
-env:
- NE_MUTE_STDOUT: "TRUE"
-
-jobs:
- build-bionic:
- # CODE-hosted runner
- runs-on: [ code-large ]
- container:
- image: art.sec.samsung.net/aip_docker/n2s2_docker/bionic:latest
- options: --user root
- timeout-minutes: 120
-
- steps:
- - name: Clone your repository
- uses: CODE-Actions/checkout@v2
- - name: Make debian packages
- run: |
- ulimit -c unlimited
- debuild -e BUILD_TYPE=debug -us -uc
- - name: Upload core dump if failed
- if: ${{ failure() }}
- uses: CODE-Actions/upload-artifact@v2
- with:
- name: unittest core dump for Bionic
- path: |
- build/tests/unittests/core
- build/tests/unittests/unittest*
- - name: Install the packages
- run: |
- dpkg -i ../npu-engine*.deb
- - name: Check reference models
- run: |
- apptest_tvn_triv2_bulk /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS
- apptest_tvn_triv2_bulk /opt/trinity/share/npu-engine/testdata/TRIV221_8TOPS -t
-
- build-focal:
- # CODE-hosted runner
- runs-on: [ code-large ]
- container:
- image: art.sec.samsung.net/aip_docker/n2s2_docker/focal:latest
- options: --user root
- timeout-minutes: 120
-
- steps:
- - name: Clone your repository
- uses: CODE-Actions/checkout@v2
- - name: Make debian packages
- run: |
- ulimit -c unlimited
- debuild -e BUILD_TYPE=debug -us -uc
- - name: Upload core dump if failed
- if: ${{ failure() }}
- uses: CODE-Actions/upload-artifact@v2
- with:
- name: unittest core dump for Focal
- path: |
- build/tests/unittests/core
- build/tests/unittests/unittest*
- - name: Install the packages
- run: |
- dpkg -i ../npu-engine*.deb
- - name: Check reference models
- run: |
- apptest_tvn_triv2_bulk /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS
- apptest_tvn_triv2_bulk /opt/trinity/share/npu-engine/testdata/TRIV221_8TOPS -t