-
Notifications
You must be signed in to change notification settings - Fork 952
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further reduced the number of CI combinations
- Loading branch information
Showing
1 changed file
with
15 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
cmake-version: '3.22.x' | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- 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,16 +96,14 @@ jobs: | |
source-dir: ${{ github.workspace }} | ||
cc: gcc | ||
cxx: g++ | ||
build-type: ${{ matrix.buildType }} | ||
build-type: Release | ||
run-test: true | ||
ctest-options: -V | ||
|
||
fedora-clang-openssl: | ||
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/[email protected] | ||
- 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/[email protected] | ||
- 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/[email protected] | ||
|
@@ -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/[email protected] | ||
- 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/[email protected] | ||
- 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/[email protected] | ||
|
@@ -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/[email protected] | ||
|
@@ -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 |