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.
Merge branch 'master' into update-nextjs-14
Update package lock file for new frontend
- Loading branch information
Showing
61 changed files
with
4,420 additions
and
681 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,9 @@ | ||
{ | ||
"name": "CodeCompass-devcontainer", | ||
"image": "modelcpp/codecompass:dev", | ||
"workspaceFolder": "/CodeCompass/CodeCompass", | ||
"workspaceMount": "src=${localWorkspaceFolder}/..,dst=/CodeCompass,type=bind,consistency=cached", | ||
"appPort": [ | ||
"8001:8080" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# 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 | ||
echo "CMAKE_PREFIX_PATH=${INSTALL_PATH}/thrift:$CMAKE_PREFIX_PATH" >> $GITHUB_ENV | ||
|
||
# Clean up dependency sources and intermediate binaries to save space | ||
rm -f ${DOWNLOAD_PATH}/thrift-0.16.0.tar.gz | ||
rm -rf ${DOWNLOAD_PATH}/thrift-0.16.0/ |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
#!/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 | ||
|
||
# Clean up dependency sources and intermediate binaries to save space | ||
rm -rf ${DOWNLOAD_PATH}/odb |
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
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.