File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Unit Test Daily
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ device :
7
+ type : choice
8
+ description : run unittest device type
9
+ options :
10
+ - cuda
11
+ - ascend
12
+
13
+ env :
14
+ BUILD_TYPE : Release
15
+
16
+ jobs :
17
+ build :
18
+ runs-on : [self-hosted, ${{ inputs.device }}]
19
+ container :
20
+ image : modelbox/modelbox-develop-tensorflow_2.6.0-cuda_11.2-ubuntu-x86_64
21
+
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - name : Configure CMake
25
+ run : |
26
+ mkdir build
27
+ cd build
28
+ cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
29
+
30
+ - name : Build
31
+ working-directory : build
32
+ run : |
33
+ make package -j8
34
+
35
+ - name : Test
36
+ working-directory : build
37
+ run : |
38
+ make build-test -j8
39
+ unset LD_LIBRARY_PATH
40
+ make unittest
You can’t perform that action at this time.
0 commit comments