Skip to content

Commit

Permalink
upgrade to conan 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mcb5637 committed May 13, 2024
1 parent 3d966b0 commit edc1f7c
Show file tree
Hide file tree
Showing 5 changed files with 688 additions and 11 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/code_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,24 @@ jobs:
- name: Install linker
uses: rui314/setup-mold@v1

- name: Configure conan
run: |
pip3 install conan==2.3.0
conan profile new --detect default
conan profile update settings.compiler.libcxx=libstdc++11 default
conan remote add -f dice-group https://conan.dice-research.org/artifactory/api/conan/tentris
- name: Cache conan data
id: cache-conan
uses: actions/cache@v3
with:
path: ~/.conan/data
key: ${{ matrix.config.os }}-${{ matrix.config.compiler }}

- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DBUILD_EXAMPLES=On -G Ninja -B build .
run: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DBUILD_EXAMPLES=On -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -G Ninja -B build .
env:
CC: ${{ steps.install_cc.outputs.cc }}
CXX: ${{ steps.install_cc.outputs.cxx }}
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22)
cmake_minimum_required(VERSION 3.24)

project(
dice-hash
Expand Down
Loading

0 comments on commit edc1f7c

Please sign in to comment.