Daily Unit Test On Device #1014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily Unit Test On Device | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 18 * * *' | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
runs-on: ${{ matrix.devices }} | |
if: github.repository == 'modelbox-ai/modelbox' | |
strategy: | |
max-parallel: 1 | |
matrix: | |
devices: | |
- tensorrt | |
- pytorch | |
- tensorflow | |
- ubuntu-d310p | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure CMake | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_TIDY=on -DCLANG_TIDY_AS_ERROR=on | |
- name: Build | |
working-directory: build | |
run: | | |
make package -j4 | |
- name: Test | |
working-directory: build | |
run: | | |
dpkg -r $(dpkg -l|grep modelbox|awk '{print $2}') || true | |
[ "$(arch)" == "aarch64" ] && export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgomp.so.1 | |
make build-test -j4 | |
unset LD_LIBRARY_PATH | |
make unittest | |
shell: bash |