ci: build: test all supported ssl libraries
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>main^2
parent
f34f8cbb8a
commit
175f7c8f55
|
@ -2,11 +2,31 @@ name: build
|
|||
on: push
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- ssl: none
|
||||
name: none
|
||||
- ssl: openssl
|
||||
name: OPENSSL
|
||||
pkg: libssl-dev
|
||||
- ssl: mbedtls
|
||||
name: MBEDTLS
|
||||
pkg: libmbedtls-dev
|
||||
- ssl: wolfssl
|
||||
name: WOLFSSL
|
||||
pkg: libwolfssl-dev
|
||||
steps:
|
||||
- run: sudo apt install -y libev-dev libssl-dev
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- run: cmake .
|
||||
- run: make
|
||||
- name: build
|
||||
env:
|
||||
name: ${{ matrix.name }}
|
||||
pkg: ${{ matrix.pkg }}
|
||||
run: |
|
||||
sudo apt install -y libev-dev
|
||||
[ -n "$pkg" ] && sudo apt install -y $pkg
|
||||
[ "$name" = "none" ] && cmake . -DUHTTPD_SSL_SUPPORT=OFF || cmake . -DUHTTPD_USE_$name=ON
|
||||
make
|
||||
|
|
Loading…
Reference in New Issue