blob: a0cba1059f7cab28083f8e49bd5946a3d665d40a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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 ninja
run: sudo apt-get install ninja-build
- name: Install TLS engine
run: sudo apt-get install ${{ matrix.tls.pkg }}
- name: Configure
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 ${{ matrix.tls.dir }} && ninja
- name: Test
run: cd ${{ matrix.tls.dir }} && ctest --output-on-failure
|