diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-08 09:19:15 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-08 16:32:41 -0800 |
| commit | b931c47d8a995e9dcc847071455fc49b68c8604d (patch) | |
| tree | 8ff70db822cf4d713aebca7c19b798700368fd1a /.github/workflows/linux.yml | |
| parent | a3d3b5170fe7050c0324848508e60febbd2084f5 (diff) | |
| download | nng-b931c47d8a995e9dcc847071455fc49b68c8604d.tar.gz nng-b931c47d8a995e9dcc847071455fc49b68c8604d.tar.bz2 nng-b931c47d8a995e9dcc847071455fc49b68c8604d.zip | |
Add matrix of TLS engines, including wolfSSL
Diffstat (limited to '.github/workflows/linux.yml')
| -rw-r--r-- | .github/workflows/linux.yml | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c40b65f7..a0cba105 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 }} && ninja - name: Test - run: cd build && ctest --output-on-failure + run: cd ${{ matrix.tls.dir }} && ctest --output-on-failure |
