@@ -11,13 +11,21 @@ jobs:
11
11
build :
12
12
strategy :
13
13
matrix :
14
- os : [ubuntu-22.04, windows-2019]
15
- BUILD_TYPE : [RelWithDebInfo, Debug]
14
+ # os: [ubuntu-22.04, windows-2022]
15
+ os : [windows-2022]
16
+ # BUILD_TYPE: [RelWithDebInfo, Debug]
17
+ BUILD_TYPE : [RelWithDebInfo]
16
18
include :
17
- - CONAN_BUILD_TYPE : Debug
18
- BUILD_TYPE : Debug
19
+ # - CONAN_BUILD_TYPE: Debug
20
+ # BUILD_TYPE: Debug
19
21
- CONAN_BUILD_TYPE : Release
20
22
BUILD_TYPE : RelWithDebInfo
23
+ # - os: ubuntu-22.04
24
+ # conanruncmd: source conanrun.sh
25
+ # testshell: bash
26
+ - os : windows-2022
27
+ conanruncmd : .\conanrun.bat
28
+ testshell : cmd
21
29
22
30
runs-on : ${{matrix.os}}
23
31
steps :
@@ -27,23 +35,18 @@ jobs:
27
35
id : conan
28
36
uses : turtlebrowser/get-conan@main
29
37
with :
30
- version : 1.66 .0
38
+ version : 2.11 .0
31
39
32
40
- name : Detect Conan Profile
33
- run : conan profile new default --detect
34
-
35
- - name : Fix libcxx setting
36
- run : conan profile update settings.compiler.libcxx=libstdc++11 default
37
- if : matrix.os == 'ubuntu-22.04'
38
-
41
+ run : conan profile detect
42
+
39
43
- name : Install Dependencies
40
- run : conan install --install-folder ${{github.workspace}}/ build -s build_type=${{matrix.CONAN_BUILD_TYPE}} -o sqlite3:shared=True .
41
- # run: conan install --install -folder ${{github.workspace}}/build -s build_type=${{matrix.CONAN_BUILD_TYPE}} .
44
+ # "&:build_type=..." specifies the consumer packages build type, see https://github.com/conan-io/conan/issues/16852
45
+ run : conan install . --output -folder ${{github.workspace}}/build -s build_type=${{matrix.CONAN_BUILD_TYPE}} -s "&:build_type=${{matrix.BUILD_TYPE}}" -o "sqlite3/*:shared=True" --build=missing
42
46
43
47
- name : Configure CMake
44
- # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
45
- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
46
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} -DBUILD_SHARED_LIBS=True
48
+ # Configure CMake in a 'build' subdirectory.
49
+ run : cmake --preset conan-default . -DBUILD_SHARED_LIBS=ON
47
50
48
51
- name : Build
49
52
# Build your program with the given configuration
53
56
working-directory : ${{github.workspace}}/build
54
57
# Execute tests defined by the CMake configuration.
55
58
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
56
- run : ctest -C ${{matrix.BUILD_TYPE}} --output-on-failure
59
+ run : ${{matrix.conanruncmd}} && ctest -C ${{matrix.BUILD_TYPE}} --output-on-failure
60
+ shell : ${{matrix.testshell}}
57
61
58
62
- name : CPack
59
63
if : ${{ github.event_name == 'release' }}
77
81
if : ${{ github.event_name == 'release' }}
78
82
strategy :
79
83
matrix :
80
- artifact_os : [ubuntu-22.04, windows-2019 ]
84
+ artifact_os : [ubuntu-22.04, windows-2022 ]
81
85
artifact_build_type : [RelWithDebInfo, Debug]
82
86
runs-on : ubuntu-22.04
83
87
steps :
0 commit comments