-
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.
- Loading branch information
1 parent
8761540
commit da57451
Showing
12 changed files
with
137 additions
and
21 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
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,5 @@ | ||
#!/bin/bash | ||
|
||
# Post compilation configuration for runtime (environmental variables, library location settings etc..) | ||
|
||
echo "LD_LIBRARY_PATH=${INSTALL_PATH}/thrift/lib:$LD_LIBRARY_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Compile dependencies that cannot be acquired via the official repositories | ||
|
||
mkdir -p ${INSTALL_PATH} | ||
|
||
## Compile build2 | ||
|
||
sh "${DOWNLOAD_PATH}/install_latest_build2.sh" ${INSTALL_PATH}/build2 | ||
|
||
## Compile odb, libodb, and its connectors | ||
|
||
mkdir -p ${DOWNLOAD_PATH}/odb | ||
cd ${DOWNLOAD_PATH}/odb | ||
${INSTALL_PATH}/build2/bin/bpkg create --quiet --jobs $(nproc) cc \ | ||
config.cxx=g++ \ | ||
config.cc.coptions=-O3 \ | ||
config.bin.rpath=${INSTALL_PATH}/odb/lib \ | ||
config.install.root=${INSTALL_PATH}/odb | ||
|
||
### Getting the source | ||
${INSTALL_PATH}/build2/bin/bpkg add https://pkg.cppget.org/1/beta --trust-yes | ||
${INSTALL_PATH}/build2/bin/bpkg fetch --trust-yes | ||
|
||
### Building odb | ||
${INSTALL_PATH}/build2/bin/bpkg build odb --yes | ||
${INSTALL_PATH}/build2/bin/bpkg build libodb --yes | ||
${INSTALL_PATH}/build2/bin/bpkg build libodb-sqlite --yes | ||
${INSTALL_PATH}/build2/bin/bpkg build libodb-pgsql --yes | ||
${INSTALL_PATH}/build2/bin/bpkg install --all --recursive |
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 @@ | ||
#!/bin/bash | ||
|
||
# Download installers for compiled dependencies | ||
|
||
mkdir -p "${DOWNLOAD_PATH}" | ||
|
||
## Thrift 0.16 + ODB beta | ||
|
||
wget -O "${DOWNLOAD_PATH}/install_latest_build2.sh" "https://github.com/Ericsson/CodeCompass/raw/master/scripts/install_latest_build2.sh" | ||
build2_version=$(sh "${DOWNLOAD_PATH}/install_latest_build2.sh" --version) | ||
odb_signature=$(wget -qO- https://pkg.cppget.org/1/beta/signature.manifest) | ||
|
||
# Calculate hash of dependencies for Github Cache Action | ||
|
||
hash_value=$(echo -n "${build2_version}${odb_signature}" | md5sum | awk '{print $1}') | ||
|
||
## Save said hash | ||
|
||
### Restore action | ||
echo "ubuntu-22-04-compile-hash-key=${hash_value}" >> "$GITHUB_OUTPUT" | ||
|
||
### Save action | ||
echo "CACHE_KEY=${hash_value}" >> "$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Post compilation configuration for building (environmental variables, library location settings etc..) | ||
|
||
echo "${INSTALL_PATH}/odb/bin" >> $GITHUB_PATH | ||
echo "CMAKE_PREFIX_PATH=${INSTALL_PATH}/odb:$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# Post compilation configuration for runtime (environmental variables, library location settings etc..) | ||
|
||
echo "LD_LIBRARY_PATH=${INSTALL_PATH}/odb/lib:$LD_LIBRARY_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# Install required packages for CodeCompass build | ||
sudo apt install git cmake make g++ libboost-all-dev \ | ||
llvm-11-dev clang-11 libclang-11-dev \ | ||
gcc-11-plugin-dev thrift-compiler libthrift-dev \ | ||
default-jdk libssl-dev libgraphviz-dev libmagic-dev libgit2-dev exuberant-ctags doxygen \ | ||
libldap2-dev libgtest-dev |
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 @@ | ||
#!/bin/bash | ||
|
||
# Install PostgreSQL | ||
sudo apt-get install postgresql-server-dev-14 |
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 @@ | ||
#!/bin/bash | ||
|
||
# Install SQLite3 | ||
sudo apt-get install libsqlite3-dev |
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