Skip to content

[Feature](bangc-ops): Update binary ops to v1.21.0rc2 (#860) #137

[Feature](bangc-ops): Update binary ops to v1.21.0rc2 (#860)

[Feature](bangc-ops): Update binary ops to v1.21.0rc2 (#860) #137

name: bangc_all_system_test
on:
push:
branches: [master, r*]
paths:
- 'bangc-ops/kernels/kernel_wrapper/**'
- 'bangc-ops/CMakeLists.txt'
- 'bangc-ops/independent_build.sh'
tags:
- v*
pull_request:
paths:
- '.github/workflows/bangc_all_system_ci.yaml'
jobs:
test:
strategy:
matrix:
runner: [mlu370-m8]
mlu_ops_version : [0.9.0]
cntoolkit_version : [3.7.0]
os: [ubuntu18.04, ubuntu20.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}}
- 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-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}
./build.sh --sub_module=bangc
- 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}}
bash version_check.sh ${{matrix.mlu_ops_version}}
- name: bangc_ops_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}}
./test.sh --sub_module=bangc --cases_dir=/testdata/release_test/default_platform
- 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-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/default_platform
- name: bangc_ops_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}}
./test.sh --sub_module=bangc --cases_dir=/testdata/release_test/370
- name: 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-${{matrix.os}}-cntoolkit${{matrix.cntoolkit_version}}
./test.sh --sub_module=bangc --cases_dir=/testdata/release_temp/370
- name: clean
run: |
rm -rf bangc-ops/build