-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: extend scripts for compilation reasons
- Loading branch information
1 parent
920c810
commit 5b53e7d
Showing
4 changed files
with
54 additions
and
0 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,22 @@ | ||
# Compile dependencies that are 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,22 @@ | ||
# Download installers for compiled dependencies | ||
|
||
mkdir -p ${DOWNLOAD_PATH} | ||
|
||
## Thrift 0.16 | ||
|
||
wget -O ${DOWNLOAD_PATH}/thrift-0.16.0.tar.gz "http://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=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_data="" | ||
for file in "${dependencies_to_hash[@]}"; do | ||
concatenated_data="${concatenated_data}$(echo -n "$file"; cat "${DOWNLOAD_PATH}/${file}")" | ||
done | ||
|
||
hash_value=$(echo -n "$concatenated_data" | 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,7 @@ | ||
# 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 | ||
|
||
|
||
sudo cp ${INSTALL_PATH}/thrift/lib/libthrift.so /usr/lib |
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,3 @@ | ||
# Post compilation configuration for runtime (environmental variables, library location settings etc..) | ||
|
||
sudo cp ${INSTALL_PATH}/thrift/lib/libthrift.so /usr/lib |