--- /dev/null
+name: test packages
+description: test with fastmodel
+
+inputs:
+ package_path:
+ description: path of RPM packages
+ required: true
+ default: /tmp/rpms
+ run_apptest:
+ description: run apptest
+ required: false
+ type: string
+ art_id:
+ description: artifactory id
+ required: true
+ art_pw:
+ description: artifactory password
+ required: true
+
+runs:
+ using: composite
+ steps:
+ # Move the package
+ - run: |
+ mkdir -p /opt/trinity/share/RPMS
+ cp ${{ inputs.package_path }}/npu-engine* /opt/trinity/share/RPMS
+ shell: bash
+ # Download latest npu kernel
+ - run: |
+ wget -r -np -nH --cut-dirs=5 https://bart.sec.samsung.net/artifactory/aip-generic-local/NPU_LinuxKernel/latest/aarch64/ --user ${{ inputs.art_id }} --password ${{ inputs.art_pw }}
+ mv *.rpm /opt/trinity/share/RPMS
+ shell: bash
+ # Set up test environment
+ - run: |
+ service ssh start
+ service ssh status
+ export ARMLMD_LICENSE_FILE=8224@10.113.242.30
+ su www-data --command /opt/trinity/run_taos &
+ sed -i -e "s/\[IP]/$(hostname -i)/g" /opt/trinity/connect_kernel.exp
+ sed -i -e "s/\[APPTEST]/${{ inputs.run_apptest }}/g" /opt/trinity/connect_kernel.exp
+ sleep 20
+ su www-data --command /opt/trinity/connect_kernel.exp
+ shell: bash
name: build package for aarch64
on:
+ push:
pull_request_target:
branches: [ tizen ]
# CODE-hosted runner
runs-on: [ code-large ]
container:
- image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/bionic:latest
+ image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/fastmodel:latest
# for chroot-based build system
options: --privileged
credentials:
with:
arch: aarch64
output_path: /tmp/rpms
+ - name: Fastmodel test
+ uses: ./.github/actions/test-fastmodel
+ with:
+ package_path: /tmp/rpms
+ art_id: ${{ secrets.BART_ID }}
+ art_pw: ${{ secrets.BART_PW }}
+ - name: Upload test result
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: fastmodel test log
+ path: |
+ /opt/trinity/share/log/err.txt
+ /opt/trinity/share/log/out.txt
+ - name: Check if apptest failed
+ run: |
+ echo $(cat /opt/trinity/share/log/result.txt)
+ if [[ "$(cat /opt/trinity/share/log/result.txt)" != 0 ]]; then
+ exit 1
+ fi
+ shell : bash
+ - name: Upload artifacts
+ uses: CODE-Actions/upload-artifact@v2
+ with:
+ name: built-package
+ path: /tmp/rpms