From ec995e5c1663ff11f8b84853ad436a5dd6250fae Mon Sep 17 00:00:00 2001 From: offa Date: Mon, 13 May 2024 18:11:33 +0200 Subject: [PATCH] Test --- .github/workflows/ci.yml | 176 +++++++++++++++++++-------------------- 1 file changed, 88 insertions(+), 88 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5daa46d..b048aa9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,84 +3,84 @@ name: ci on: [push, pull_request] jobs: - build_linux: - runs-on: ubuntu-latest - strategy: - matrix: - compiler: - - gcc:13 - - gcc:12 - - clang:18 - - clang:17 - boost: - - true - - false - container: - image: "registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}" - name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})" - steps: - - uses: actions/checkout@main - - name: Cache Conan Packages - uses: actions/cache@main - with: - path: ~/.conan2/p/ - key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }} - - name: Install dependencies - run: script/ci_setup.sh - - name: Install Boost - if: ${{ matrix.boost == true }} - run: | - add-apt-repository ppa:nicola-onorata/toolchain - apt-get update - apt-get install -y boost1.81 - - name: Build - run: script/ci_build.sh -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }} - - name: Check deployment as cmake subdirectory - run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=ON -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }} - - name: Install - run: cmake --build build --target install - - name: Check installed library - run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=OFF - - - build_windows: - runs-on: windows-latest - strategy: - matrix: - compiler: - - msvc - boost: - - "True" - - "False" - name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})" - defaults: - run: - shell: bash - steps: - - uses: actions/checkout@main - - name: Cache Conan Packages - uses: actions/cache@main - with: - path: ~/.conan2/p/ - key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }} - - name: Setup Ninja - uses: turtlesec-no/get-ninja@main - - name: Setup MSVC - uses: ilammy/msvc-dev-cmd@v1 - - name: Install dependencies - run: | - pip3 install -U conan - conan profile detect - echo "tools.cmake.cmaketoolchain:generator=Ninja" >> ~/.conan2/global.conf - mkdir build - conan install -o "influxdb_cxx/*":boost=${{ matrix.boost }} -o "influxdb_cxx/*":tests=True -s compiler.cppstd=20 --build=missing . -of build - conan install --build=missing -of build --requires "libcurl/7.87.0" --deployer full_deploy - - name: Build - run: | - export CL="/ID:\a\influxdb-cxx\influxdb-cxx\build\host\libcurl\7.87.0\Release\x86_64\include" - script/ci_build.sh -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS_INIT=-D_WIN32_WINNT=0x0A00 - - name: Install - run: cmake --build --preset conan-release --target install + # build_linux: + # runs-on: ubuntu-latest + # strategy: + # matrix: + # compiler: + # - gcc:13 + # - gcc:12 + # - clang:18 + # - clang:17 + # boost: + # - true + # - false + # container: + # image: "registry.gitlab.com/offa/docker-images/${{ matrix.compiler }}" + # name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})" + # steps: + # - uses: actions/checkout@main + # - name: Cache Conan Packages + # uses: actions/cache@main + # with: + # path: ~/.conan2/p/ + # key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }} + # - name: Install dependencies + # run: script/ci_setup.sh + # - name: Install Boost + # if: ${{ matrix.boost == true }} + # run: | + # add-apt-repository ppa:nicola-onorata/toolchain + # apt-get update + # apt-get install -y boost1.81 + # - name: Build + # run: script/ci_build.sh -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }} + # - name: Check deployment as cmake subdirectory + # run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=ON -DINFLUXCXX_WITH_BOOST=${{ matrix.boost }} + # - name: Install + # run: cmake --build build --target install + # - name: Check installed library + # run: script/ci_testdeploy.sh -DINFLUXCXX_AS_SUBDIR=OFF + # + # + # build_windows: + # runs-on: windows-latest + # strategy: + # matrix: + # compiler: + # - msvc + # boost: + # - "True" + # - "False" + # name: "${{ matrix.compiler }} (Boost: ${{ matrix.boost }})" + # defaults: + # run: + # shell: bash + # steps: + # - uses: actions/checkout@main + # - name: Cache Conan Packages + # uses: actions/cache@main + # with: + # path: ~/.conan2/p/ + # key: conan-${{ runner.os }}-${{ matrix.compiler }}-boost_${{ matrix.boost }}-${{ hashFiles('conanfile.py') }} + # - name: Setup Ninja + # uses: turtlesec-no/get-ninja@main + # - name: Setup MSVC + # uses: ilammy/msvc-dev-cmd@v1 + # - name: Install dependencies + # run: | + # pip3 install -U conan + # conan profile detect + # echo "tools.cmake.cmaketoolchain:generator=Ninja" >> ~/.conan2/global.conf + # mkdir build + # conan install -o "influxdb_cxx/*":boost=${{ matrix.boost }} -o "influxdb_cxx/*":tests=True -s compiler.cppstd=20 --build=missing . -of build + # conan install --build=missing -of build --requires "libcurl/7.87.0" --deployer full_deploy + # - name: Build + # run: | + # export CL="/ID:\a\influxdb-cxx\influxdb-cxx\build\host\libcurl\7.87.0\Release\x86_64\include" + # script/ci_build.sh -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS_INIT=-D_WIN32_WINNT=0x0A00 + # - name: Install + # run: cmake --build --preset conan-release --target install build_osx: @@ -108,13 +108,13 @@ jobs: run: cmake --build build --target install - formatting-check: - name: "formatting" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@main - - uses: DoozyX/clang-format-lint-action@master - name: "Verify formatting" - with: - clangFormatVersion: 16 - + # formatting-check: + # name: "formatting" + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@main + # - uses: DoozyX/clang-format-lint-action@master + # name: "Verify formatting" + # with: + # clangFormatVersion: 16 + #