Skip to content

Commit a10d197

Browse files
committed
Added CI
1 parent 7a4d700 commit a10d197

File tree

6 files changed

+67
-4
lines changed

6 files changed

+67
-4
lines changed

.github/workflows/ubuntu.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Compile, run tests and check code style
2+
3+
on:
4+
push:
5+
branches: [ "master", "test-ci" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: false
15+
16+
matrix:
17+
os: [ubuntu-24.04]
18+
c_compiler: [gcc-14]
19+
cpp_compiler: [g++-14]
20+
build_type: [Release, Debug]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
submodules: recursive
26+
27+
- name: Setup enviroment
28+
run: |
29+
sudo apt update
30+
sudo apt install gcc-14
31+
sudo apt install g++-14
32+
sudo apt install cmake
33+
sudo apt install clang-format
34+
35+
- name: Configure CMake
36+
run: |
37+
cd ${{ github.workspace }}
38+
cmake -B build -S . \
39+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
40+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
41+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
42+
-DCUBOOL_GRAPH_ENABLE_TESTING=ON \
43+
-DCUBOOL_WITH_CUDA=OFF \
44+
-DCUBOOL_WITH_SEQUENTIAL=ON
45+
46+
- name: Build
47+
run: |
48+
cmake --build build -j10
49+
50+
- name: Run tests
51+
run: |
52+
./build/tests/cuboolgraph_tests

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@
3030
*.exe
3131
*.out
3232
*.app
33+
34+
build/*
35+
.cache/*
36+
.vscode/*

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[submodule "cuBool"]
2-
path = cuBool
3-
url = https://github.com/mitya-y/cuBool
41
[submodule "deps/googletest"]
52
path = deps/googletest
63
url = https://github.com/google/googletest
74
[submodule "deps/fast_matrix_market"]
85
path = deps/fast_matrix_market
96
url = https://github.com/alugowski/fast_matrix_market
7+
[submodule "deps/cuBool"]
8+
path = deps/cuBool
9+
url = https://github.com/mitya-y/cuBool

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ add_library(${CUBOOL_GRAPH_LIB_NAME} SHARED "")
99

1010
set(CUBOOL_COPY_TO_PY_PACKAGE OFF)
1111
set(CUBOOL_BUILD_TESTS OFF)
12-
add_subdirectory(cuBool)
12+
add_subdirectory(deps/cuBool)
1313

1414
# cubool is a name of CMakeTarget cmake target
1515
target_link_libraries(${CUBOOL_GRAPH_LIB_NAME} PUBLIC cubool)

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# cuBoolGraph
22
cuBool based graph analysis algorithms
3+
4+
# Run tests
5+
```
6+
cmake -B build -DCUBOOL_GRAPH_ENABLE_TESTING=ON
7+
cmake --build build
8+
./build/tests/cuboolgraph_tests
9+
```

0 commit comments

Comments
 (0)