style: changes according to clang-format #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile, run tests and check code style | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04] | |
c_compiler: [gcc-14] | |
cpp_compiler: [g++-14] | |
build_type: [Release, Debug] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup enviroment | |
run: | | |
sudo apt update | |
sudo apt install gcc-14 | |
sudo apt install g++-14 | |
sudo apt install cmake | |
sudo apt install clang-format | |
- name: Configure CMake | |
run: | | |
cd ${{ github.workspace }} | |
cmake -B build -S . \ | |
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \ | |
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCUBOOL_GRAPH_ENABLE_TESTING=ON \ | |
-DCUBOOL_WITH_CUDA=OFF \ | |
-DCUBOOL_WITH_SEQUENTIAL=ON | |
- name: Build | |
run: | | |
cmake --build build -j10 | |
- name: Run tests | |
run: | | |
./build/tests/cuboolgraph_tests |