forked from pytorch/glow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[travis] Cache protobuf compilation.
- Loading branch information
1 parent
6180027
commit a4cd662
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
pb_dir="$HOME/.cache/pb" | ||
mkdir -p "$pb_dir" | ||
|
||
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz | ||
tar -xzf protobuf-2.6.1.tar.gz | ||
cd protobuf-2.6.1 && ./configure CC=gcc CXX=g++ CXX_FOR_BUILD=g++ --prefix=/usr && make && sudo make install | ||
tar -xzf protobuf-2.6.1.tar.gz -C "$pb_dir" --strip-components 1 | ||
cd "$pb_dir" && ./configure CC=gcc CXX=g++ CXX_FOR_BUILD=g++ --prefix=/usr && make -j2 && sudo make install |