diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2fdae1bc..6cbdf6d38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,46 +72,8 @@ jobs: run-test: true ctest-options: -V - ubuntu-clang-mbedtls: - strategy: - matrix: - container: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04", "ubuntu:23.04"] - buildType: [Debug, Release] - runs-on: ubuntu-latest - container: ${{ matrix.container }} - steps: - - name: Update package list - run: apt update - - name: Install Dependencies - run: apt install -y git libssl-dev libmbedtls-dev cmake build-essential clang - - name: Setup cmake - uses: jwlawson/actions-setup-cmake@v1.13 - with: - cmake-version: '3.22.x' - - name: Checkout - uses: actions/checkout@v3.1.0 - - name: "Build & Test" - env: - CPR_BUILD_TESTS: ON - CPR_BUILD_TESTS_SSL: ON - CPR_FORCE_MBEDTLS_BACKEND: ON - uses: ashutoshvarma/action-cmake-build@master - with: - build-dir: ${{ github.workspace }}/build - source-dir: ${{ github.workspace }} - cc: clang - cxx: clang++ - build-type: ${{ matrix.buildType }} - run-test: true - ctest-options: -V - ubuntu-gcc-mbedtls: - strategy: - matrix: - container: ["ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04", "ubuntu:23.04"] - buildType: [Debug, Release] runs-on: ubuntu-latest - container: ${{ matrix.container }} steps: - name: Update package list run: apt update @@ -134,7 +96,7 @@ jobs: source-dir: ${{ github.workspace }} cc: gcc cxx: g++ - build-type: ${{ matrix.buildType }} + build-type: Release run-test: true ctest-options: -V @@ -142,8 +104,6 @@ jobs: strategy: matrix: container: ["fedora:latest"] - systemCurl: [ON, OFF] - buildType: [Debug, Release] runs-on: ubuntu-latest container: ${{ matrix.container }} steps: @@ -158,14 +118,14 @@ jobs: CPR_BUILD_TESTS: ON CPR_BUILD_TESTS_SSL: ON CPR_FORCE_OPENSSL_BACKEND: ON - USE_SYSTEM_CURL: ${{ matrix.systemCurl }} + USE_SYSTEM_CURL: OFF uses: ashutoshvarma/action-cmake-build@master with: build-dir: ${{ github.workspace }}/build source-dir: ${{ github.workspace }} cc: clang cxx: clang++ - build-type: ${{ matrix.buildType }} + build-type: Release run-test: true ctest-options: -V @@ -200,64 +160,6 @@ jobs: run-test: true ctest-options: -V - fedora-clang-mbedtls: - strategy: - matrix: - container: ["fedora:latest"] - buildType: [Debug, Release] - runs-on: ubuntu-latest - container: ${{ matrix.container }} - steps: - - name: Update package list - run: dnf update -y - - name: Install Dependencies - run: dnf install -y gcc clang git gcc gdb make openssl-devel mbedtls-devel libcurl-devel cmake - - name: Checkout - uses: actions/checkout@v3.1.0 - - name: "Build & Test" - env: - CPR_BUILD_TESTS: ON - CPR_BUILD_TESTS_SSL: ON - CPR_FORCE_MBEDTLS_BACKEND: ON - uses: ashutoshvarma/action-cmake-build@master - with: - build-dir: ${{ github.workspace }}/build - source-dir: ${{ github.workspace }} - cc: clang - cxx: clang++ - build-type: ${{ matrix.buildType }} - run-test: true - ctest-options: -V - - fedora-gcc-mbedtls: - strategy: - matrix: - container: ["fedora:latest"] - buildType: [Debug, Release] - runs-on: ubuntu-latest - container: ${{ matrix.container }} - steps: - - name: Update package list - run: dnf update -y - - name: Install Dependencies - run: dnf install -y gcc clang git gcc gdb make openssl-devel mbedtls-devel libcurl-devel cmake - - name: Checkout - uses: actions/checkout@v3.1.0 - - name: "Build & Test" - env: - CPR_BUILD_TESTS: ON - CPR_BUILD_TESTS_SSL: ON - CPR_FORCE_MBEDTLS_BACKEND: ON - uses: ashutoshvarma/action-cmake-build@master - with: - build-dir: ${{ github.workspace }}/build - source-dir: ${{ github.workspace }} - cc: gcc - cxx: g++ - build-type: ${{ matrix.buildType }} - run-test: true - ctest-options: -V - fedora-gcc-ssl-sanitizer: strategy: matrix: @@ -285,11 +187,11 @@ jobs: run-test: true ctest-options: -V - windows22-msvc-ssl: + windows-msvc-ssl: strategy: matrix: buildType: [Debug, Release] - runs-on: windows-2022 + runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@v3.1.0 @@ -306,32 +208,8 @@ jobs: run-test: true ctest-options: -V - windows19-msvc-ssl: - strategy: - matrix: - buildType: [Debug, Release] - runs-on: windows-2019 - steps: - - name: Checkout - uses: actions/checkout@v3.1.0 - - name: "Build & Test" - env: - CMAKE_GENERATOR: "Visual Studio 16 2019" - CPR_BUILD_TESTS: ON - CPR_BUILD_TESTS_SSL: OFF - uses: ashutoshvarma/action-cmake-build@master - with: - build-dir: ${{ github.workspace }}/build - source-dir: ${{ github.workspace }} - build-type: ${{ matrix.buildType }} - run-test: true - ctest-options: -V - - windows22-msvc-openssl: - strategy: - matrix: - buildType: [Debug, Release] - runs-on: windows-2022 + windows-msvc-openssl: + runs-on: windows-latest steps: - name: Install OpenSSL run: choco install openssl -y @@ -347,40 +225,12 @@ jobs: with: build-dir: ${{ github.workspace }}/build source-dir: ${{ github.workspace }} - build-type: ${{ matrix.buildType }} - run-test: true - ctest-options: -V - - windows19-msvc-openssl: - strategy: - matrix: - buildType: [Debug, Release] - runs-on: windows-2019 - steps: - - name: Install OpenSSL - run: choco install openssl -y - - name: Checkout - uses: actions/checkout@v3.1.0 - - name: "Build & Test" - env: - CMAKE_GENERATOR: "Visual Studio 16 2019" - CPR_BUILD_TESTS: ON - CPR_BUILD_TESTS_SSL: ON - CPR_FORCE_OPENSSL_BACKEND: ON - uses: ashutoshvarma/action-cmake-build@master - with: - build-dir: ${{ github.workspace }}/build - source-dir: ${{ github.workspace }} - build-type: ${{ matrix.buildType }} + build-type: Release run-test: true ctest-options: -V macos-clang-openssl: - strategy: - matrix: - os: [macos-12, macos-11] - buildType: [Debug, Release] - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Install OpenSSL run: | @@ -405,16 +255,15 @@ jobs: source-dir: ${{ github.workspace }} cc: clang cxx: clang++ - build-type: ${{ matrix.buildType }} + build-type: Release run-test: true ctest-options: -V macos-clang-ssl: strategy: matrix: - os: [macos-12, macos-11] buildType: [Debug, Release] - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v3.1.0 @@ -433,11 +282,7 @@ jobs: ctest-options: -V macos-clang-darwinssl: - strategy: - matrix: - os: [macos-12, macos-11] - buildType: [Debug, Release] - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v3.1.0 @@ -452,16 +297,12 @@ jobs: source-dir: ${{ github.workspace }} cc: clang cxx: clang++ - build-type: ${{ matrix.buildType }} + build-type: Release run-test: true ctest-options: -V macos-clang-openssl-boost: - strategy: - matrix: - os: [macos-12, macos-11] - buildType: [Debug, Release] - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Install Boost run: brew install boost @@ -490,6 +331,6 @@ jobs: source-dir: ${{ github.workspace }} cc: clang cxx: clang++ - build-type: ${{ matrix.buildType }} + build-type: Release run-test: true ctest-options: -V