Files
jwt-cpp/.github/workflows/ssl.yml
Chris Mc c9a511f436 🔒 Update SSL libraries to latest versions (#235)
* Bump test SSL libraries

* Fix copy paste error

* fix bad spacing

* Update README.md

* bump again

* remove libressl 3.5.3

* Update ssl.yml

* put back 3.5.x for failing badge

* Update action.yml

* point URLs back to main since testing worked

* Only publish badge on push

leftover from me testing on my fork 25 days ago 😭

* Trying using 1.1 apis with libressl

https://github.com/libressl-portable/portable/issues/764#issuecomment-1153548504

Co-Authored-By: Theo Buehler <botovq@users.noreply.github.com>

* Limit new APIs to required version

limit change to older supported versions

* Update tests for new libressl APIs

Co-authored-by: Theo Buehler <botovq@users.noreply.github.com>
2022-06-14 09:02:34 -07:00

111 lines
3.2 KiB
YAML

name: SSL Compatibility CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
openssl:
runs-on: ubuntu-latest
strategy:
matrix:
openssl:
- { tag: "openssl-3.0.3", name: "3.0.3" }
- { tag: "OpenSSL_1_1_1o", name: "1.1.1o" }
- { tag: "OpenSSL_1_1_0i", name: "1.1.0i" } # Do not bump, there's a broken in the autoconfig script and it's not maintained
- { tag: "OpenSSL_1_0_2u", name: "1.0.2u" }
- { tag: "OpenSSL_1_0_1u", name: "1.0.1u" }
name: OpenSSL ${{ matrix.openssl.name }}
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/openssl
with:
version: ${{ matrix.openssl.tag }}
- name: configure
run: cmake . -DJWT_BUILD_TESTS=ON -DOPENSSL_ROOT_DIR=/tmp
- run: make
- name: test
run: ./tests/jwt-cpp-test
- if: github.event_name == 'push' && always()
uses: ./.github/actions/badge
with:
category: openssl
label: ${{ matrix.openssl.name }}
openssl-no-deprecated:
runs-on: ubuntu-latest
name: OpenSSL 3.0 No Deprecated
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/openssl
with:
version: "openssl-3.0.3"
- name: configure
run: cmake . -DJWT_BUILD_TESTS=ON -DOPENSSL_ROOT_DIR=/tmp -DCMAKE_CXX_FLAGS="-DOPENSSL_NO_DEPRECATED=1" -DCMAKE_C_FLAGS="-DOPENSSL_NO_DEPRECATED=1"
- run: make
libressl:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
libressl: ["3.5.3", "3.4.3", "3.3.6"]
name: LibreSSL ${{ matrix.libressl }}
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/libressl
with:
version: ${{ matrix.libressl }}
- name: configure
run: cmake . -DJWT_BUILD_TESTS=ON -DJWT_SSL_LIBRARY:STRING=LibreSSL
- run: make
- name: test
run: ./tests/jwt-cpp-test
- if: github.event_name == 'push' && always()
uses: ./.github/actions/badge
with:
category: libressl
label: ${{ matrix.libressl }}
wolfssl:
runs-on: ubuntu-latest
strategy:
matrix:
wolfssl:
- { ref: "v5.1.1-stable", name: "5.1.1"}
- { ref: "v5.2.0-stable", name: "5.2.0" }
- { ref: "v5.3.0-stable", name: "5.3.0"}
name: wolfSSL ${{ matrix.wolfssl.name }}
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- uses: ./.github/actions/install/gtest
- uses: ./.github/actions/install/wolfssl
with:
version: ${{ matrix.wolfssl.ref }}
- name: configure
run: cmake . -DJWT_BUILD_TESTS=ON -DJWT_SSL_LIBRARY:STRING=wolfSSL
- run: make
- name: test
run: ./tests/jwt-cpp-test
- if: github.event_name == 'push' && always()
uses: ./.github/actions/badge
with:
category: wolfssl
label: ${{ matrix.wolfssl.name }}