You need to sign in or sign up before continuing.
Unverified Commit 94d3765b authored by guoshzhao's avatar guoshzhao Committed by GitHub
Browse files

Benchmarks: Build Pipeline - Call build script when setup environment. (#76)

* call build script in Makefile.
* add cppbuild command for testing and docker env.
parent 977b1a73
...@@ -15,6 +15,9 @@ steps: ...@@ -15,6 +15,9 @@ steps:
- script: | - script: |
python3 -m pip install .[test,torch] python3 -m pip install .[test,torch]
displayName: Install dependencies displayName: Install dependencies
- script: |
make cppbuild
displayName: Build benchmarks
- script: | - script: |
python3 setup.py lint python3 setup.py lint
displayName: Run code lint displayName: Run code lint
......
...@@ -10,3 +10,6 @@ cpplint: ...@@ -10,3 +10,6 @@ cpplint:
cppformat: cppformat:
clang-format --verbose -i $(CPPSOURCES) clang-format --verbose -i $(CPPSOURCES)
cppbuild:
cd ./superbench/benchmarks/ && bash build.sh
...@@ -87,4 +87,5 @@ WORKDIR ${SB_HOME} ...@@ -87,4 +87,5 @@ WORKDIR ${SB_HOME}
ADD . . ADD . .
RUN cd ${SB_HOME} && \ RUN cd ${SB_HOME} && \
python3 -m pip install .[torch] python3 -m pip install .[torch] && \
make cppbuild
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment