-
Notifications
You must be signed in to change notification settings - Fork 106
81 lines (74 loc) · 2.68 KB
/
bangc_ci.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: bangc_ci
on:
push:
branches: [master, r*]
paths-ignore:
- 'docs/**'
- 'bangpy-ops/**'
- 'docker/**'
- 'samples/**'
- 'installer/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/pull_request_template.md'
- 'CONTRIBUTION.md'
- 'CPPLINT.cfg'
- 'LICENSE'
- 'README.md'
- 'bangc-ops/README.md'
- 'requirements.txt'
- '.github/workflows/bangc_all_system_ci.yaml'
- '.github/workflows/bangpy_ci.yaml'
- '.github/workflows/daily.yaml'
pull_request:
branches: [master, r*]
paths-ignore:
- 'docs/**'
- 'bangpy-ops/**'
- 'docker/**'
- 'samples/**'
- 'installer/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/pull_request_template.md'
- 'CONTRIBUTION.md'
- 'CPPLINT.cfg'
- 'LICENSE'
- 'README.md'
- 'bangc-ops/README.md'
- 'requirements.txt'
- '.github/workflows/bangc_all_system_ci.yaml'
- '.github/workflows/bangpy_ci.yaml'
- '.github/workflows/daily.yaml'
jobs:
test:
strategy:
matrix:
runner: [mlu370-m8]
mlu_ops_version : [0.9.0]
cntoolkit_version : [3.7.0]
runs-on: ${{matrix.runner}}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: bangc_lint_check
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/mlu-ops/mluops_ci:v0.2-x86_64-ubuntu16.04-BANGPy
./tools/pre-commit origin/master
- name: build_bangc_ops
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-ubuntu18.04-cntoolkit${{matrix.cntoolkit_version}}
./build.sh --sub_module=bangc
- name: bangc_ops_release_temp_cases
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-ubuntu18.04-cntoolkit${{matrix.cntoolkit_version}}
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/default_platform
- name: test_bangc_ops_release_temp_370_cases
if: matrix.runner == 'mlu370-m8'
run: >
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v /testdata:/testdata -v $(pwd):/work -w /work docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-ubuntu18.04-cntoolkit${{matrix.cntoolkit_version}}
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/370
- name: clean
run: |
rm -rf bangc-ops/build