forked from Ericsson/CodeCompass
-
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.
Update Thrift to version 0.16 (Ericsson#657)
- Loading branch information
1 parent
66c1fc7
commit a7b3234
Showing
32 changed files
with
1,803 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Compile dependencies that cannot be acquired via the official repositories | ||
|
||
mkdir -p ${INSTALL_PATH} | ||
|
||
## Compile Thrift | ||
tar -xvf ${DOWNLOAD_PATH}/thrift-0.16.0.tar.gz | ||
cd thrift-0.16.0 | ||
./configure --prefix=${INSTALL_PATH}/thrift --silent --without-python \ | ||
--enable-libtool-lock --enable-tutorial=no --enable-tests=no \ | ||
--with-libevent --with-zlib --without-nodejs --without-lua \ | ||
--without-ruby --without-csharp --without-erlang --without-perl \ | ||
--without-php --without-php_extension --without-dart \ | ||
--without-haskell --without-go --without-rs --without-haxe \ | ||
--without-dotnetcore --without-d --without-qt4 --without-qt5 \ | ||
--without-java --without-swift | ||
|
||
make install -j $(nproc) |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Download installers for compiled dependencies | ||
|
||
mkdir -p ${DOWNLOAD_PATH} | ||
|
||
## Thrift 0.16 | ||
|
||
wget -O ${DOWNLOAD_PATH}/thrift-0.16.0.tar.gz "http://archive.apache.org/dist/thrift/0.16.0/thrift-0.16.0.tar.gz" | ||
|
||
# Calculate hash of dependencies for Github Cache Action | ||
|
||
dependencies_to_hash=("thrift-0.16.0.tar.gz") | ||
|
||
concatenated_hashes="" | ||
for file in "${dependencies_to_hash[@]}"; do | ||
file_hash=$(md5sum "${DOWNLOAD_PATH}/${file}" | awk '{print $1}') | ||
concatenated_hashes="${concatenated_hashes}${file_hash}" | ||
done | ||
|
||
hash_value=$(echo -n "$concatenated_hashes" | md5sum | awk '{print $1}') | ||
|
||
## Save said hash | ||
|
||
echo "compile-hash-key=${hash_value}" >> $GITHUB_OUTPUT |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Post compilation configuration for building (environmental variables, library location settings etc..) | ||
|
||
echo "${INSTALL_PATH}/thrift/bin" >> $GITHUB_PATH | ||
echo "CMAKE_PREFIX_PATH=${INSTALL_PATH}/thrift:$CMAKE_PREFIX_PATH" >> $GITHUB_ENV |
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
File renamed without changes.
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
File renamed without changes.
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
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
Binary file not shown.
Binary file not shown.
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
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
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
Oops, something went wrong.