-
Notifications
You must be signed in to change notification settings - Fork 106
86 lines (75 loc) · 3.47 KB
/
mluops_all_system_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
82
83
84
85
86
name: mluops_all_system_test
on:
push:
branches: [master, r*]
paths:
- 'CMakeLists.txt'
- 'independent_build.sh'
- 'build.sh'
- 'build.property'
- 'test/mlu_op_gtest/CMakeLists.txt'
- 'cmake/*'
- 'CMakeLists.txt'
tags:
- v*
pull_request:
branches: [master, r*]
paths:
- '.github/workflows/mluops_all_system_ci.yaml'
- 'CMakeLists.txt'
- 'independent_build.sh'
- 'build.sh'
- 'build.property'
- 'test/mlu_op_gtest/CMakeLists.txt'
- 'cmake/*'
- 'CMakeLists.txt'
jobs:
test:
strategy:
matrix:
runner: [mlu370-m8]
mlu_ops_version : [1.0.0]
cntoolkit_version : [3.9.0]
cnnl_version: [1.24.0]
os: [ubuntu20.04, ubuntu22.04, centos7, centos8, kylin10]
runs-on: ${{matrix.runner}}
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: pull_images
run: |
docker pull docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}-cnnl${{matrix.cnnl_version}}
- name: build_mlu_ops
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}-cnnl${{matrix.cnnl_version}}
./build.sh
- name: mlu_ops_version_check
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}-cnnl${{matrix.cnnl_version}}
bash version_check.sh ${{matrix.mlu_ops_version}}
- name: release_test_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-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}-cnnl${{matrix.cnnl_version}}
./test.sh --cases_dir=/testdata/release_test/default_platform
- name: 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-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}-cnnl${{matrix.cnnl_version}}
./test.sh --cases_dir=/testdata/release_temp/default_platform
- name: release_test_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-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}-cnnl${{matrix.cnnl_version}}
./test.sh --cases_dir=/testdata/release_test/370
- name: 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-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}-cnnl${{matrix.cnnl_version}}
./test.sh --cases_dir=/testdata/release_temp/370
- name: clean
run: |
rm -rf build