Benchmarks: Build Pipeline - Call build script when setup environment. (#76)
* call build script in Makefile. * add cppbuild command for testing and docker env.
This commit is contained in:
Родитель
977b1a7355
Коммит
94d3765b49
|
@ -15,6 +15,9 @@ steps:
|
|||
- script: |
|
||||
python3 -m pip install .[test,torch]
|
||||
displayName: Install dependencies
|
||||
- script: |
|
||||
make cppbuild
|
||||
displayName: Build benchmarks
|
||||
- script: |
|
||||
python3 setup.py lint
|
||||
displayName: Run code lint
|
||||
|
|
3
Makefile
3
Makefile
|
@ -10,3 +10,6 @@ cpplint:
|
|||
|
||||
cppformat:
|
||||
clang-format --verbose -i $(CPPSOURCES)
|
||||
|
||||
cppbuild:
|
||||
cd ./superbench/benchmarks/ && bash build.sh
|
||||
|
|
|
@ -87,4 +87,5 @@ WORKDIR ${SB_HOME}
|
|||
ADD . .
|
||||
|
||||
RUN cd ${SB_HOME} && \
|
||||
python3 -m pip install .[torch]
|
||||
python3 -m pip install .[torch] && \
|
||||
make cppbuild
|
||||
|
|
Загрузка…
Ссылка в новой задаче