Skip to content

Commit 8931842

Browse files
committed
gitaction: add daily test
1 parent 1d25ee9 commit 8931842

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/unit-test-daily.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)