Skip to content

Partial send on blocking sockets is not available in Windows #46

Partial send on blocking sockets is not available in Windows

Partial send on blocking sockets is not available in Windows #46

name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- name: "OSX clang shared library using LibreSSL"
os: macos-latest
generator: -G "Unix Makefiles"
libressl: -DOPENSSL_ROOT_DIR:PATH=build/external/libressl/install
type: Debug
- name: "OSX clang shared library using OpenSSL"
os: macos-latest
generator: -G "Unix Makefiles"
type: Debug
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: cache externals restore
id: cache-externals-restore
if: matrix.libressl
uses: actions/cache/restore@v3
with:
path: build/external/libressl/install
key: ${{ matrix.os }}-externals-${{ hashFiles('external/CMakeLists.txt') }}
- name: configure externals
if: matrix.libressl && (steps.cache-externals-restore.outputs.cache-hit != 'true')
run: cmake -B build/external -S external ${{ matrix.generator }} -DCMAKE_BUILD_TYPE:STRING=${{ matrix.type }}
- name: build externals
if: matrix.libressl && (steps.cache-externals-restore.outputs.cache-hit != 'true')
run: cmake --build build/external --config ${{ matrix.type }}
- name: cache externals save
id: cache-externals-save
if: matrix.libressl
uses: actions/cache/save@v3
with:
path: build/external/libressl/install
key: ${{ steps.cache-externals-restore.outputs.cache-primary-key }}
- name: configure library
run: >
cmake -B build -S . ${{ matrix.generator }}
-DBUILD_SHARED_LIBS:BOOL=ON
-DWITH_TLS:BOOL=ON
${{ matrix.libressl }}
-DCMAKE_BUILD_TYPE:STRING=${{ matrix.type }}
- name: build library
run: cmake --build build --config ${{ matrix.type }}
- name: build & run tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: cmake --build build --target run_tests --config ${{ matrix.type }}