diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f098df8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/conanfile.txt b/conanfile.txt index 7e66710..6a99764 100644 --- a/conanfile.txt +++ b/conanfile.txt @@ -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