@@ -3,84 +3,84 @@ name: ci
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build_linux :
7
- runs-on : ubuntu-latest
8
- strategy :
9
- matrix :
10
- compiler :
11
- - gcc:13
12
- - gcc:12
13
- - clang:18
14
- - clang:17
15
- boost :
16
- - true
17
- - false
18
- container :
19
- image : " registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}"
20
- name : " ${{ matrix.compiler }} (Boost: ${{ matrix.boost }})"
21
- steps :
22
- - uses : actions/checkout@main
23
- - name : Cache Conan Packages
24
- uses : actions/cache@main
25
- with :
26
- path : ~/.conan2/p/
27
- key : conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }}
28
- - name : Install dependencies
29
- run : script/ci_setup.sh
30
- - name : Install Boost
31
- if : ${{ matrix.boost == true }}
32
- run : |
33
- add-apt-repository ppa:nicola-onorata/toolchain
34
- apt-get update
35
- apt-get install -y boost1.81
36
- - name : Build
37
- run : script/ci_build.sh -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
38
- - name : Check deployment as cmake subdirectory
39
- run : script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=ON -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
40
- - name : Install
41
- run : cmake --build build --target install
42
- - name : Check installed library
43
- run : script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=OFF
44
-
45
-
46
- build_windows :
47
- runs-on : windows-latest
48
- strategy :
49
- matrix :
50
- compiler :
51
- - msvc
52
- boost :
53
- - " True"
54
- - " False"
55
- name : " ${{ matrix.compiler }} (Boost: ${{ matrix.boost }})"
56
- defaults :
57
- run :
58
- shell : bash
59
- steps :
60
- - uses : actions/checkout@main
61
- - name : Cache Conan Packages
62
- uses : actions/cache@main
63
- with :
64
- path : ~/.conan2/p/
65
- key : conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }}
66
- - name : Setup Ninja
67
- uses : turtlesec-no/get-ninja@main
68
- - name : Setup MSVC
69
- uses : ilammy/msvc-dev-cmd@v1
70
- - name : Install dependencies
71
- run : |
72
- pip3 install -U conan
73
- conan profile detect
74
- echo "tools.cmake.cmaketoolchain:generator=Ninja" >> ~/.conan2/global.conf
75
- mkdir build
76
- conan install -o "influxdb_cxx/*":boost=${{ matrix.boost }} -o "influxdb_cxx/*":tests=True -s compiler.cppstd=20 --build=missing . -of build
77
- conan install --build=missing -of build --requires "libcurl/7.87.0" --deployer full_deploy
78
- - name : Build
79
- run : |
80
- export CL="/ID:\a\influxdb-cxx\influxdb-cxx\build\host\libcurl\7.87.0\Release\x86_64\include"
81
- script/ci_build.sh -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS_INIT=-D_WIN32_WINNT=0x0A00
82
- - name : Install
83
- run : cmake --build --preset conan-release --target install
6
+ # build_linux:
7
+ # runs-on: ubuntu-latest
8
+ # strategy:
9
+ # matrix:
10
+ # compiler:
11
+ # - gcc:13
12
+ # - gcc:12
13
+ # - clang:18
14
+ # - clang:17
15
+ # boost:
16
+ # - true
17
+ # - false
18
+ # container:
19
+ # image: "registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}"
20
+ # name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})"
21
+ # steps:
22
+ # - uses: actions/checkout@main
23
+ # - name: Cache Conan Packages
24
+ # uses: actions/cache@main
25
+ # with:
26
+ # path: ~/.conan2/p/
27
+ # key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }}
28
+ # - name: Install dependencies
29
+ # run: script/ci_setup.sh
30
+ # - name: Install Boost
31
+ # if: ${{ matrix.boost == true }}
32
+ # run: |
33
+ # add-apt-repository ppa:nicola-onorata/toolchain
34
+ # apt-get update
35
+ # apt-get install -y boost1.81
36
+ # - name: Build
37
+ # run: script/ci_build.sh -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
38
+ # - name: Check deployment as cmake subdirectory
39
+ # run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=ON -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }}
40
+ # - name: Install
41
+ # run: cmake --build build --target install
42
+ # - name: Check installed library
43
+ # run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=OFF
44
+ #
45
+ #
46
+ # build_windows:
47
+ # runs-on: windows-latest
48
+ # strategy:
49
+ # matrix:
50
+ # compiler:
51
+ # - msvc
52
+ # boost:
53
+ # - "True"
54
+ # - "False"
55
+ # name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})"
56
+ # defaults:
57
+ # run:
58
+ # shell: bash
59
+ # steps:
60
+ # - uses: actions/checkout@main
61
+ # - name: Cache Conan Packages
62
+ # uses: actions/cache@main
63
+ # with:
64
+ # path: ~/.conan2/p/
65
+ # key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }}
66
+ # - name: Setup Ninja
67
+ # uses: turtlesec-no/get-ninja@main
68
+ # - name: Setup MSVC
69
+ # uses: ilammy/msvc-dev-cmd@v1
70
+ # - name: Install dependencies
71
+ # run: |
72
+ # pip3 install -U conan
73
+ # conan profile detect
74
+ # echo "tools.cmake.cmaketoolchain:generator=Ninja" >> ~/.conan2/global.conf
75
+ # mkdir build
76
+ # conan install -o "influxdb_cxx/*":boost=${{ matrix.boost }} -o "influxdb_cxx/*":tests=True -s compiler.cppstd=20 --build=missing . -of build
77
+ # conan install --build=missing -of build --requires "libcurl/7.87.0" --deployer full_deploy
78
+ # - name: Build
79
+ # run: |
80
+ # export CL="/ID:\a\influxdb-cxx\influxdb-cxx\build\host\libcurl\7.87.0\Release\x86_64\include"
81
+ # script/ci_build.sh -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS_INIT=-D_WIN32_WINNT=0x0A00
82
+ # - name: Install
83
+ # run: cmake --build --preset conan-release --target install
84
84
85
85
86
86
build_osx :
@@ -108,13 +108,13 @@ jobs:
108
108
run : cmake --build build --target install
109
109
110
110
111
- formatting-check :
112
- name : " formatting"
113
- runs-on : ubuntu-latest
114
- steps :
115
- - uses : actions/checkout@main
116
- - uses : DoozyX/clang-format-lint-action@master
117
- name : " Verify formatting"
118
- with :
119
- clangFormatVersion : 16
120
-
111
+ # formatting-check:
112
+ # name: "formatting"
113
+ # runs-on: ubuntu-latest
114
+ # steps:
115
+ # - uses: actions/checkout@main
116
+ # - uses: DoozyX/clang-format-lint-action@master
117
+ # name: "Verify formatting"
118
+ # with:
119
+ # clangFormatVersion: 16
120
+ #
0 commit comments