File tree Expand file tree Collapse file tree 5 files changed +18
-11
lines changed
Expand file tree Collapse file tree 5 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -60,5 +60,8 @@ SpacesInParentheses: 'false'
6060SpacesInSquareBrackets : ' false'
6161Standard : Cpp11
6262UseTab : Never
63-
63+ ---
64+ Language : Json
65+ BasedOnStyle : llvm
66+ IndentWidth : ' 4'
6467...
Original file line number Diff line number Diff line change 2424 run : cmake --preset=release
2525 - name : Check C++ Formatting
2626 run : cmake --build build --target check-clang-format
27+ - name : Print C++ Formatting Problems
28+ if : failure()
29+ run : |
30+ find . -iname '*.cpp' -o -iname '*.hpp' | xargs clang-format -i
31+ git diff
2732 - name : Check CMake Formatting
2833 run : cmake --build build --target check-cmake-format
Original file line number Diff line number Diff line change 1010 strategy :
1111 matrix :
1212 os : [ubuntu-latest]
13- compiler : [{cpp: g++-10, c: gcc-10}]
13+ version : [11, 12, 13]
14+
15+ name : Build (GCC ${{ matrix.version }})
1416
1517 runs-on : ${{ matrix.os }}
1618
@@ -23,13 +25,12 @@ jobs:
2325 - name : Prepare build environment
2426 run : |
2527 sudo apt update
26- sudo apt-get install ninja-build gcovr
28+ sudo apt-get install ninja-build gcovr cmake gcc-${{ matrix.version }} g++-${{ matrix.version }}
29+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} ${{ matrix.version }}
30+ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} ${{ matrix.version }}
2731
2832 - name : Configure CMake
2933 run : cmake --preset=debug -DPASTA_BIT_VECTOR_BUILD_TESTS=On -DPASTA_BIT_VECTOR_COVERAGE_REPORTING=On
30- env :
31- CC : gcc-10
32- CXX : g++-10
3334
3435 - name : Build
3536 run : cmake --build ${{github.workspace}}/debug/
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if (PROJECT_IS_TOP_LEVEL)
3737 FetchContent_Declare(
3838 Format.cmake
3939 GIT_REPOSITORY https://github.com/TheLartians/Format.cmake
40- GIT_TAG v1.8.1
40+ GIT_TAG v1.8.3
4141 )
4242 FetchContent_MakeAvailable(Format.cmake)
4343
Original file line number Diff line number Diff line change @@ -233,10 +233,8 @@ class BitVectorBenchmark {
233233
234234 LOG << LOG_PREFIX << " Finished PaStA bit vector benchmark" ;
235235
236- std::cout << " RESULT "
237- << " algo=" << name << " "
238- << " bit_size=" << bit_size_ << " "
239- << " fill_percentage=" << fill_percentage_ << " "
236+ std::cout << " RESULT " << " algo=" << name << " " << " bit_size=" << bit_size_
237+ << " " << " fill_percentage=" << fill_percentage_ << " "
240238 << " bv_construction_time=" << bv_construction_time << " "
241239#if defined(DNDEBUG)
242240 << " bv_construction_mem=" << bv_construction_mem.cur_peak << " "
You can’t perform that action at this time.
0 commit comments