Skip to content

Commit 213ab9f

Browse files
committed
Merge branch 'master' into csharp_plugin
# Conflicts: # .github/workflows/ci.yml # .gitignore # docker/runtime/Dockerfile # docker/web/Dockerfile
2 parents 48f9983 + 7e69ea2 commit 213ab9f

264 files changed

Lines changed: 30065 additions & 862 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "CodeCompass-devcontainer",
3+
"image": "modelcpp/codecompass:dev",
4+
"workspaceFolder": "/CodeCompass/CodeCompass",
5+
"workspaceMount": "src=${localWorkspaceFolder}/..,dst=/CodeCompass,type=bind,consistency=cached",
6+
"appPort": [
7+
"8001:8080"
8+
]
9+
}

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/.github"
6+
schedule:
7+
interval: "weekly"
8+
labels:
9+
- "Target: Developer environment"
10+
11+
# Maintain dependencies for npm
12+
- package-ecosystem: "npm"
13+
directory: "/webgui-new"
14+
schedule:
15+
interval: "weekly"
16+
labels:
17+
- "Target: WebGUI"
18+
# Disable version updates, only security updates will be made!
19+
open-pull-requests-limit: 0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Compile dependencies that cannot be acquired via the official repositories
4+
5+
mkdir -p ${INSTALL_PATH}
6+
7+
## Compile build2
8+
9+
sh "${DOWNLOAD_PATH}/install_latest_build2.sh" ${INSTALL_PATH}/build2
10+
11+
## Compile odb, libodb, and its connectors
12+
13+
mkdir -p ${DOWNLOAD_PATH}/odb
14+
cd ${DOWNLOAD_PATH}/odb
15+
${INSTALL_PATH}/build2/bin/bpkg create --quiet --jobs $(nproc) cc \
16+
config.cxx=g++ \
17+
config.cc.coptions=-O3 \
18+
config.bin.rpath=${INSTALL_PATH}/odb/lib \
19+
config.install.root=${INSTALL_PATH}/odb
20+
21+
### Getting the source
22+
${INSTALL_PATH}/build2/bin/bpkg add https://pkg.cppget.org/1/beta --trust-yes
23+
${INSTALL_PATH}/build2/bin/bpkg fetch --trust-yes
24+
25+
### Building odb
26+
${INSTALL_PATH}/build2/bin/bpkg build odb --yes
27+
${INSTALL_PATH}/build2/bin/bpkg build libodb --yes
28+
${INSTALL_PATH}/build2/bin/bpkg build libodb-sqlite --yes
29+
${INSTALL_PATH}/build2/bin/bpkg build libodb-pgsql --yes
30+
${INSTALL_PATH}/build2/bin/bpkg install --all --recursive
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# Download installers for compiled dependencies
4+
5+
mkdir -p "${DOWNLOAD_PATH}"
6+
7+
## Thrift 0.16 + ODB beta
8+
9+
wget -O "${DOWNLOAD_PATH}/install_latest_build2.sh" "https://github.com/Ericsson/CodeCompass/raw/master/scripts/install_latest_build2.sh"
10+
build2_version=$(sh "${DOWNLOAD_PATH}/install_latest_build2.sh" --version)
11+
odb_signature=$(wget -qO- https://pkg.cppget.org/1/beta/signature.manifest)
12+
13+
# Calculate hash of dependencies for Github Cache Action
14+
15+
hash_value=$(echo -n "${build2_version}${odb_signature}" | md5sum | awk '{print $1}')
16+
17+
## Save said hash
18+
19+
### Restore action
20+
echo "compile-hash-key=${hash_value}" >> "$GITHUB_OUTPUT"
21+
22+
### Save action
23+
echo "CACHE_KEY=${hash_value}" >> "$GITHUB_ENV"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Post compilation configuration for building (environmental variables, library location settings etc..)
4+
5+
echo "${INSTALL_PATH}/odb/bin" >> $GITHUB_PATH
6+
echo "CMAKE_PREFIX_PATH=${INSTALL_PATH}/odb:$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
7+
8+
# Clean up dependency sources and intermediate binaries to save space
9+
rm -rf ${DOWNLOAD_PATH}/odb
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Install required packages for CodeCompass build
4+
sudo apt-get install --yes \
5+
git cmake make g++ libboost-all-dev \
6+
llvm-15-dev clang-15 libclang-15-dev \
7+
gcc-11-plugin-dev thrift-compiler libthrift-dev \
8+
default-jdk libssl-dev libgraphviz-dev libmagic-dev libgit2-dev exuberant-ctags doxygen \
9+
libldap2-dev libgtest-dev
10+
11+
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
12+
sudo dpkg -i packages-microsoft-prod.deb
13+
sudo apt-get update
14+
sudo apt-get install -y apt-transport-https
15+
sudo apt-get update
16+
sudo apt-get install -y dotnet-sdk-6.0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Install PostgreSQL
4+
sudo apt-get install postgresql-server-dev-14
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Install SQLite3
4+
sudo apt-get install libsqlite3-dev

0 commit comments

Comments
 (0)