[Feature](bangc-ops): add adamw proto (#92) #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mluops_ci | |
on: | |
push: | |
branches: [master, r*] | |
pull_request: | |
branches: [master, r*] | |
jobs: | |
test: | |
runs-on: mlu370-m8 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: update_image | |
run: | | |
docker pull docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-ubuntu18.04-cntoolkit3.7.0-cnnl1.21.1 | |
- name: get_mluops | |
run: | | |
for i in {1..20}; do git clone https://github.com/Cambricon/mlu-ops.git --depth 1 && break || sleep 5; done | |
- name: replace_proto | |
run: | | |
cp mlu_op_test.proto mlu-ops/test/mlu_op_gtest/pb_gtest/mlu_op_test_proto | |
- name: build_mluops | |
run: > | |
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/mlu-ops/mluops_ci:devel-x86_64-ubuntu18.04-cntoolkit3.7.0-cnnl1.21.1 | |
bash -c "cd mlu-ops && bash build.sh" | |
- name: clean | |
run: | | |
rm -rf mlu-ops |