Skip to content

Commit edc1f7c

Browse files
committed
upgrade to conan 2
1 parent 3d966b0 commit edc1f7c

File tree

5 files changed

+688
-11
lines changed

5 files changed

+688
-11
lines changed

.github/workflows/code_testing.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,24 @@ jobs:
4949
- name: Install linker
5050
uses: rui314/setup-mold@v1
5151

52+
- name: Configure conan
53+
run: |
54+
pip3 install conan==2.3.0
55+
conan profile new --detect default
56+
conan profile update settings.compiler.libcxx=libstdc++11 default
57+
conan remote add -f dice-group https://conan.dice-research.org/artifactory/api/conan/tentris
58+
59+
- name: Cache conan data
60+
id: cache-conan
61+
uses: actions/cache@v3
62+
with:
63+
path: ~/.conan/data
64+
key: ${{ matrix.config.os }}-${{ matrix.config.compiler }}
65+
5266
- uses: actions/checkout@v3
5367

5468
- name: Configure CMake
55-
run: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DBUILD_EXAMPLES=On -G Ninja -B build .
69+
run: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DBUILD_EXAMPLES=On -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -G Ninja -B build .
5670
env:
5771
CC: ${{ steps.install_cc.outputs.cc }}
5872
CXX: ${{ steps.install_cc.outputs.cxx }}

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.22)
1+
cmake_minimum_required(VERSION 3.24)
22

33
project(
44
dice-hash

0 commit comments

Comments
 (0)