Skip to content

Commit

Permalink
Further reduced the number of CI combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Aug 3, 2023
1 parent b91508d commit 84f16c7
Showing 1 changed file with 15 additions and 174 deletions.
189 changes: 15 additions & 174 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 84f16c7

Please sign in to comment.