提交 f36b8dce 编写于 作者: Z Zhang Zhimin

feat: Use a standalone gitlab ci runner for Micro

上级 76f29748
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get update --fix-missing
RUN apt-get install -y wget
RUN apt-get install -y g++ gcc
RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4-Linux-x86_64.sh && chmod +x cmake-3.18.4-Linux-x86_64.sh && ./cmake-3.18.4-Linux-x86_64.sh --skip-license --prefix=/usr
RUN apt-get install -y g++-5 gcc-5
RUN apt-get install -y gcc-arm-none-eabi
RUN apt-get install -y python3 python3-pip git mercurial
RUN apt-get install -y git mercurial
RUN apt-get install -y python python-pip
RUN apt-get install -y python3 python3-pip
RUN wget https://cdn.cnbj1.fds.api.mi-img.com/mace/third-party/cmake-3.18.3-Linux-x86_64.sh
RUN chmod +x cmake-3.18.3-Linux-x86_64.sh && ./cmake-3.18.3-Linux-x86_64.sh --skip-license --prefix=/usr
RUN python -m pip install -U pip
RUN python -m pip install jinja2 pyyaml sh numpy six filelock
RUN python -m pip install tensorflow==1.8.0
RUN python3 -m pip install -U pip
RUN python3 -m pip install jinja2 pyyaml sh numpy six filelock
......
default:
tags:
- mace-micro
image: mace-micro-dev
before_script:
- git submodule deinit -f .
- git submodule sync
......@@ -23,6 +28,5 @@ cross-build:
- bash micro/tools/ci/cross_build.sh
- bash micro/tools/ci/host_build_and_run_examples.sh
- bash micro/tools/ci/host_build_and_run_tests.sh
# The mbed-cli protobuf version conflicts with others
# - bash micro/tools/ci/build_mbed_example.sh
- bash micro/tools/ci/build_mbed_example.sh
TARGET=NUCLEO_F767ZI
ROOT=.
TOOLCHAIN=GCC_ARM
......@@ -3,7 +3,7 @@
rm -rf mace-models
rm -rf build/micro
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone git@git.n.xiaomi.com:applied-machine-learning/sysml/mace-models.git
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone git@git.n.xiaomi.com:applied-machine-learning/sysml/mace-models.git || exit -1
git submodule update --init . || exit -1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册