File tree Expand file tree Collapse file tree 6 files changed +67
-4
lines changed
Expand file tree Collapse file tree 6 files changed +67
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 3030* .exe
3131* .out
3232* .app
33+
34+ build /*
35+ .cache /*
36+ .vscode /*
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ add_library(${CUBOOL_GRAPH_LIB_NAME} SHARED "")
99
1010set (CUBOOL_COPY_TO_PY_PACKAGE OFF )
1111set (CUBOOL_BUILD_TESTS OFF )
12- add_subdirectory (cuBool)
12+ add_subdirectory (deps/ cuBool)
1313
1414# cubool is a name of CMakeTarget cmake target
1515target_link_libraries (${CUBOOL_GRAPH_LIB_NAME} PUBLIC cubool)
Original file line number Diff line number Diff line change 11# cuBoolGraph
22cuBool 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+ ```
You can’t perform that action at this time.
0 commit comments