File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 11env :
22 global :
33 - REPO_DIR=onnx
4- - BUILD_COMMIT=2f85783fc43576b5e39b207f95d5f789641ae706
4+ - BUILD_COMMIT=c7b60050ad6ae963bf2cc1d0eb3c32b07eb7eeed
55 - PLAT=x86_64
66 - PB_VERSION=2.6.1
77 - UNICODE_WIDTH=32
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ environment:
3939
4040install :
4141- cmd : set repo_dir=onnx
42- - cmd : set build_commit=2f85783fc43576b5e39b207f95d5f789641ae706
42+ - cmd : set build_commit=c7b60050ad6ae963bf2cc1d0eb3c32b07eb7eeed
4343- cmd : git submodule update --init --recursive
4444- cmd : cd %repo_dir%
4545- cmd : git fetch origin
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function build_libs {
2020 PB_VERSION=2.6.1
2121 mkdir -p " $pb_dir "
2222 curl -L -O https://github.com/google/protobuf/releases/download/v${PB_VERSION} /protobuf-${PB_VERSION} .tar.gz
23- tar -xzvf protobuf-${PB_VERSION} .tar.gz -C " $pb_dir " --strip-components 1
23+ tar -xzf protobuf-${PB_VERSION} .tar.gz -C " $pb_dir " --strip-components 1
2424 activate_ccache
2525 ccache -z
2626 cd ${pb_dir} && ./configure && make -j${NUMCORES} && make check && make install && ldconfig 2>&1 || true
@@ -32,7 +32,23 @@ function build_libs {
3232 echo PATH: $PATH
3333 pip install pytest-runner
3434 fi
35+
36+ cd ${wkdir_path}
37+
38+ if [ -z " $IS_OSX " ]; then
39+ cmake_dir=" ${wkdir_path} /cmake"
40+ mkdir -p " $cmake_dir "
41+ curl -L -O https://cmake.org/files/v3.1/cmake-3.1.2.tar.gz
42+ tar -xzf cmake-3.1.2.tar.gz -C " $cmake_dir " --strip-components 1
43+ cd ${cmake_dir} && ls ${cmake_dir}
44+ ./configure --prefix=${cmake_dir} /build
45+ make -j${NUMCORES} && make install
46+ ${cmake_dir} /build/bin/cmake -version
47+ export PATH=" ${cmake_dir} /build/bin:$PATH "
48+ fi
49+
3550 cd ${wkdir_path}
51+ pip install protobuf numpy
3652}
3753
3854function run_tests {
You can’t perform that action at this time.
0 commit comments