forked from modelbox-ai/modelbox
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.96 KB
/
manual-build-with-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build With Specific Images
on:
workflow_dispatch:
inputs:
image_name:
type: choice
description: Images Lists
options:
- modelbox/modelbox-develop-tensorrt_8.4.2-cuda_11.2-ubuntu-x86_64
- modelbox/modelbox-develop-tensorflow_2.6.0-cuda_11.2-ubuntu-x86_64
- modelbox/modelbox-develop-libtorch_1.9.1-cuda_10.2-ubuntu-x86_64
- modelbox/modelbox-develop-tensorrt_7.1.3-cuda_10.2-ubuntu-x86_64
- modelbox/modelbox-develop-mindspore_1.9.0-cann_6.0.1-d310-ubuntu-x86_64
- modelbox/modelbox-develop-mindspore_1.9.0-cann_6.0.1-d310p-ubuntu-x86_64
- modelbox/modelbox-develop-tensorrt_8.4.2-cuda_11.2-openeuler-x86_64
- modelbox/modelbox-develop-tensorflow_2.6.0-cuda_11.2-openeuler-x86_64
- modelbox/modelbox-develop-libtorch_1.9.1-cuda_10.2-openeuler-x86_64
- modelbox/modelbox-develop-tensorrt_7.1.3-cuda_10.2-openeuler-x86_64
- modelbox/modelbox-develop-mindspore_1.9.0-cann_6.0.1-d310-openeuler-x86_64
- modelbox/modelbox-develop-mindspore_1.9.0-cann_6.0.1-d310p-openeuler-x86_64
version:
description: 'image tag(e.g. v1.1.0)'
required: true
default: 'latest'
jobs:
build:
runs-on: ubuntu-latest
container:
image: ${{ github.event.inputs.image_name }}:${{ github.event.inputs.version }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: CMake
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_ALL_DEMO=on -DWITH_WEBUI=on
- name: Build
working-directory: build
run: make package -j8
- name: Release check
run: ./docker/artifact_check.sh
shell: bash
- name: UnitTest
working-directory: build
run: |
dpkg -r $(dpkg -l|grep modelbox|awk '{print $2}') || true
rpm -e $(rpm -qa|grep modelbox) || true
make build-test -j8
unset LD_LIBRARY_PATH
make unittest