12
12
CONFIG_GLOBAL :
13
13
CONFIG_LINUX : -DWITH_MAGICK=true -DWITH_GMP=true -DWITH_FFTW3=true -DWARNING_AS_ERROR=ON -DWITH_HDF5=true -DWITH_QGLVIEWER=true -DWITH_CAIRO=true -DWITH_EIGEN=true -DDGTAL_ENABLE_FLOATING_POINT_EXCEPTIONS=true
14
14
CONFIG_MAC : -DWITH_EIGEN=true -DWITH_GMP=tue
15
- CONFIG_WINDOWS : -DWITH_OPENMP=true -DENABLE_CONAN=true
15
+ CONFIG_WINDOWS : -DWITH_OPENMP=true
16
16
17
17
jobs :
18
18
build :
@@ -44,12 +44,14 @@ jobs:
44
44
45
45
- name : Create conan default profile
46
46
if : matrix.os == 'windows-latest'
47
- run : conan profile detect --force
48
-
47
+ run : |
48
+ conan profile detect --force
49
+
50
+
49
51
- uses : actions/cache@v4
50
52
if : matrix.os == 'windows-latest'
51
53
with :
52
- path : ~/.conan
54
+ path : ~/.conan2
53
55
key : ${{ runner.os }}-conan2-Release
54
56
55
57
@@ -88,13 +90,13 @@ jobs:
88
90
shell : bash
89
91
working-directory : ${{runner.workspace}}/build
90
92
run : |
91
- conan install $GITHUB_WORKSPACE --build=missing
92
93
git clone --depth 1 https://github.com/DGtal-team/DGtal.git
93
94
cd DGtal
95
+ conan install . --build=missing
94
96
mkdir buildDGtal
95
97
cd buildDGtal
96
- echo cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CONFIG_WINDOWS -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DBUILD_EXAMPLES=false -DBUILD_TESTING=false
97
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CONFIG_WINDOWS -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DBUILD_EXAMPLES=false -DBUILD_TESTING=false
98
+ echo cmake .. -DCMAKE_POLICY_DEFAULT_CMP0091=NEW - DCMAKE_BUILD_TYPE=$BUILD_TYPE $CONFIG_WINDOWS -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DBUILD_EXAMPLES=false -DBUILD_TESTING=false
99
+ cmake .. -DCMAKE_POLICY_DEFAULT_CMP0091=NEW - DCMAKE_BUILD_TYPE=$BUILD_TYPE $CONFIG_WINDOWS -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DBUILD_EXAMPLES=false -DBUILD_TESTING=false
98
100
cmake --build . --config Release --parallel 3
99
101
100
102
- name : Configure CMake (linux)
@@ -114,7 +116,7 @@ jobs:
114
116
working-directory : " ${{runner.workspace}}/build"
115
117
run : |
116
118
conan install $GITHUB_WORKSPACE --build=missing
117
- cmake $GITHUB_WORKSPACE -DCMAKE_MODULE_PATH="D:/a/DGtalTools-contrib/build/DGtal/buildDGtal" -DDGtal_DIR="D:/a/DGtalTools-contrib/build/DGtal/buildDGtal" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDGTAL_RANDOMIZED_TESTING_WHITELIST="${{ steps.whitelist.outputs.WHITELIST }}"
119
+ cmake $GITHUB_WORKSPACE -DCMAKE_POLICY_DEFAULT_CMP0091=NEW - DCMAKE_MODULE_PATH="D:/a/DGtalTools-contrib/build/DGtal/buildDGtal" -DDGtal_DIR="D:/a/DGtalTools-contrib/build/DGtal/buildDGtal" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDGTAL_RANDOMIZED_TESTING_WHITELIST="${{ steps.whitelist.outputs.WHITELIST }}"
118
120
119
121
- name : Build
120
122
working-directory : ${{runner.workspace}}/build
0 commit comments