Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI
on:
pull_request:
push:
branches:
- main

jobs:
CTest:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest
# - windows-latest
compiler:
- llvm-14
# - gcc
build_type:
# - Release
- Debug
# include:
# - os: windows-latest
# compiler: msvc
# exclude:
# - os: windows-latest
# compiler: gcc

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

# - name: Setup C++
# uses: aminya/setup-cpp@v0.26.2
# with:
# compiler: ${{ matrix.compiler }}
# cmake: true
# ninja: true
# make: true
# conan: true

# - name: Setup Conan
# run: |
# conan install . --output-folder=build --build=missing

# - name: Build and Test
# run: |
# cmake -B build -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .
# cmake --build build
# cd build
# ctest

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libboost-graph1.74-dev libgtest-dev

- name: Build and Test
run: |
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .
cmake --build build
cd build
ctest
32 changes: 32 additions & 0 deletions conanfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,35 @@ gtest/1.13.0
[generators]
CMakeDeps
CMakeToolchain

[options]
boost/*:without_atomic=False
boost/*:without_chrono=True
boost/*:without_container=True
boost/*:without_context=True
boost/*:without_contract=True
boost/*:without_coroutine=True
boost/*:without_date_time=True
boost/*:without_exception=True
boost/*:without_fiber=True
boost/*:without_filesystem=True
boost/*:without_graph=False
boost/*:without_graph_parallel=True
boost/*:without_iostreams=True
boost/*:without_locale=True
boost/*:without_log=True
boost/*:without_math=False
boost/*:without_mpi=True
boost/*:without_nowide=True
boost/*:without_program_options=True
boost/*:without_python=True
boost/*:without_random=False
boost/*:without_regex=False
boost/*:without_serialization=False
boost/*:without_stacktrace=True
boost/*:without_system=False
boost/*:without_test=True
boost/*:without_thread=True
boost/*:without_timer=True
boost/*:without_type_erasure=True
boost/*:without_wave=True