Skip to content

Commit

Permalink
Add matrix of TLS engines, including wolfSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Nov 8, 2024
1 parent 5f0b076 commit a236fbb
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,32 @@ name: linux
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
tls:
- engine: mbed
pkg: libmbedtls-dev
dir: build.mbed
- engine: wolf
pkg: libwolfssl-dev
dir: build.wolf
name: build
runs-on: [ubuntu-latest]
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install mbedTLS
run: sudo apt-get install libmbedtls-dev

- name: Install ninja
run: sudo apt-get install ninja-build

- name: Install TLS engine
run: sudo apt-get install ${{ matrix.tls.pkg }}

- name: Configure
run: mkdir build && cd build && cmake -G Ninja -D NNG_ENABLE_TLS=ON ..
run: mkdir ${{ matrix.tls.dir }} && cd ${{ matrix.tls.dir }} && cmake -G Ninja -D NNG_ENABLE_TLS=ON -DNNG_TLS_ENGINE=${{ matrix.tls.engine }} ..

- name: Build
run: cd build && ninja
run: cd ${{ matrix.tls.dir }} build && ninja

- name: Test
run: cd build && ctest --output-on-failure
run: cd ${{ matrix.tls.dir }} && ctest --output-on-failure

0 comments on commit a236fbb

Please sign in to comment.