Skip to content

Commit f12713a

Browse files
committed
init commit
0 parents  commit f12713a

File tree

195 files changed

+956518
-0
lines changed

Some content is hidden

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

195 files changed

+956518
-0
lines changed

.clang-format

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
BasedOnStyle: Google
2+
DerivePointerAlignment: false
3+
PointerAlignment: Left
4+
Cpp11BracedListStyle: true
5+
IndentCaseLabels: false
6+
AllowShortBlocksOnASingleLine: true
7+
AllowShortLoopsOnASingleLine: false
8+
AllowShortIfStatementsOnASingleLine: false
9+
Standard: 'Cpp11'
10+
SpaceAfterCStyleCast: true
11+
AlignAfterOpenBracket: Align

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dataset/* linguist-detectable=false
2+
ldbc_driver/* linguist-vendored
3+
misc/cpplint.py linguist-detectable=false
4+
thirdparty/* linguist-vendored
5+
*.v linguist-language=Text

.github/ISSUE_TEMPLATE/bug_report.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
<!--
10+
Thanks for your contribution! please review https://github.com/alibaba/libgrape-lite/blob/master/CONTRIBUTING.rst before opening an issue.
11+
-->
12+
13+
**Describe the bug**
14+
A clear and concise description of what the bug is.
15+
16+
**To Reproduce**
17+
To help us reproducing this bug, please provide information below:
18+
1. Your Operation System version (`uname -a`):
19+
2. The version of libgrape-lite you use:
20+
3. Versions of crucial packages, such as mpi:
21+
4. Full stack of the error.
22+
5. Minimized code to reproduce the error.
23+
24+
**Expected behavior**
25+
A clear and concise description of what you expected to happen.
26+
27+
**Additional context**
28+
Add any other context about the problem here.
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
<!--
10+
Thanks for your contribution! please review https://github.com/alibaba/libgrape-lite/blob/master/CONTRIBUTING.rst before opening an issue.
11+
-->
12+
13+
**Is your feature request related to a problem? Please describe.**
14+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15+
16+
**Describe the solution you'd like**
17+
A clear and concise description of what you want to happen.
18+
19+
**Describe alternatives you've considered**
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
Add any other context or screenshots about the feature request here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Question and support
3+
about: Find support and help for your questions of this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Do you have questions or need support? Please describe.**
11+
A clear and concise description of what the problem is.
12+
13+
**Additional context**
14+
Add any other context about the question here.

.github/PULL_REQUEST_TEMPLATE.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--
2+
Thanks for your contribution! please review https://github.com/alibaba/libgrape-lite/blob/master/CONTRIBUTING.rst before opening an issue.
3+
-->
4+
5+
## What do these changes do?
6+
7+
<!-- Please give a short brief about these changes. -->
8+
9+
## Related issue number
10+
11+
<!-- Are there any issues opened that will be resolved by merging this change? -->
12+
13+
Fixes

.github/codecov.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "60...75"
8+
status:
9+
project: off
10+
patch: off
11+
12+
parsers:
13+
gcov:
14+
branch_detection:
15+
conditional: yes
16+
loop: yes
17+
method: no
18+
macro: no
19+
20+
comment:
21+
layout: "reach,diff,flags,tree"
22+
behavior: default
23+
require_changes: no
24+
25+
ignore:
26+
- "thirdparty/**/*"
27+
- "examples/**/*"

.github/workflows/build-doc.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Doc
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
name: Doc
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
submodules: true
15+
- name: Install Dependencies
16+
run: |
17+
sudo apt update -y
18+
sudo apt install -y libmpich-dev libgoogle-glog-dev libgflags-dev libboost-dev librdkafka-dev doxygen
19+
- name: Build Doc
20+
run: |
21+
cmake .
22+
make doc
23+
- name: Commit Doc
24+
run: |
25+
git config user.email [email protected]
26+
git config user.name github-actions
27+
git branch -D gh-pages || true
28+
git checkout --orphan gh-pages
29+
shopt -s extglob
30+
rm -rf !(docs)
31+
rm -rf .github .clang-format .gitattributes .gitmodules .gitignore
32+
mv docs/* ./
33+
rmdir docs
34+
git add .
35+
git commit -m "auto build from ${{ github.sha }}."
36+
git push -f origin gh-pages
37+

.github/workflows/c-cpp.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: C++ CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'ci/**' # for personal testing
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest]
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: true
22+
- name: Cache maven packages
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.m2/repository
26+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: |
28+
${{ runner.os }}-maven-
29+
- name: Install Dependencies for Linux
30+
if: runner.os == 'Linux'
31+
run: |
32+
sudo apt update -y
33+
sudo apt install -y libmpich-dev libgoogle-glog-dev libgflags-dev libboost-dev librdkafka-dev
34+
- name: Install Dependencies for macOS
35+
if: runner.os == 'macOS'
36+
run: |
37+
sudo scutil --set HostName my_computer.local
38+
echo '127.0.0.1 my_computer.local' | sudo tee -a /etc/hosts
39+
brew install mpich glog gflags boost librdkafka
40+
- name: Build
41+
run: |
42+
mkdir build
43+
cd build
44+
cmake .. -DCMAKE_BUILD_TYPE=Debug
45+
make cpplint
46+
make
47+
- name: App Test
48+
if: runner.os == 'Linux'
49+
run: |
50+
./misc/app_tests.sh
51+
- name: Sampler Test
52+
if: runner.os == 'Linux'
53+
run: |
54+
./misc/sampler_test.sh
55+
- name: Run LDBC
56+
if: runner.os == 'Linux'
57+
run: |
58+
./ldbc_driver/run_ldbc.sh ci
59+
- name: Upload Coverage
60+
if: runner.os == 'Linux'
61+
uses: codecov/codecov-action@v1
62+
with:
63+
flags: app_tests

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# osx
2+
*.DS_Store
3+
4+
# Precompiled Headers
5+
*.gch
6+
*.pch
7+
8+
# Compiled Dynamic libraries
9+
*.so
10+
*.dylib
11+
12+
# Executables
13+
*.exe
14+
*.out
15+
*.app
16+
17+
# Clion
18+
cmake-build-debug
19+
libs
20+
build
21+
build-gcc
22+
.idea
23+
24+
.clang_complete
25+
26+
# ycm
27+
.ycm_extra_conf.py
28+
compile_commands.json
29+
30+
# vscode
31+
.vscode

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "examples/gnn_sampler/thirdparty/cppkafka"]
2+
path = examples/gnn_sampler/thirdparty/cppkafka
3+
url = https://github.com/mfontanini/cppkafka.git

0 commit comments

Comments
 (0)