mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
* do not use deprecated functions in ecdsa context * check ecdsa key on creation * add test * set compiler flags correctly * set compiler flags correctly attempt 2 Co-authored-by: Chris McArthur <prince.chrismc@gmail.com>
137 lines
4.1 KiB
YAML
137 lines
4.1 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.0", name: "3.0.0" }
|
|
- { tag: "OpenSSL_1_1_1l", name: "1.1.1l" }
|
|
- { tag: "OpenSSL_1_1_0i", name: "1.1.0i" }
|
|
- { tag: "OpenSSL_1_0_2u", name: "1.0.2u" }
|
|
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
|
|
|
|
- name: badge success
|
|
if: github.event_name == 'push' && success()
|
|
uses: ./.github/actions/badge/success
|
|
with:
|
|
category: openssl
|
|
label: ${{ matrix.openssl.name }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: badge failure
|
|
if: github.event_name == 'push' && !success()
|
|
uses: ./.github/actions/badge/failure
|
|
with:
|
|
category: openssl
|
|
label: ${{ matrix.openssl.name }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
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.0"
|
|
|
|
- name: configure
|
|
run: cmake . -DJWT_BUILD_TESTS=ON -DOPENSSL_ROOT_DIR=/tmp -DCMAKE_CXX_FLAGS="-DOPENSSL_NO_DEPRECATED_3_0=1" -DCMAKE_C_FLAGS="-DOPENSSL_NO_DEPRECATED_3_0=1"
|
|
- run: make
|
|
|
|
libressl:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
libressl: ["3.4.0", "3.3.4", "3.2.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
|
|
|
|
- name: badge success
|
|
if: github.event_name == 'push' && success()
|
|
uses: ./.github/actions/badge/success
|
|
with:
|
|
category: libressl
|
|
label: ${{ matrix.libressl }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: badge failure
|
|
if: github.event_name == 'push' && !success()
|
|
uses: ./.github/actions/badge/failure
|
|
with:
|
|
category: libressl
|
|
label: ${{ matrix.libressl }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
wolfssl:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
wolfssl:
|
|
- { ref: "v5.0.0-stable", name: "5.0.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
|
|
|
|
- name: badge success
|
|
if: github.event_name == 'push' && success()
|
|
uses: ./.github/actions/badge/success
|
|
with:
|
|
category: wolfssl
|
|
label: ${{ matrix.wolfssl.name }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: badge failure
|
|
if: github.event_name == 'push' && !success()
|
|
uses: ./.github/actions/badge/failure
|
|
with:
|
|
category: wolfssl
|
|
label: ${{ matrix.wolfssl.name }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|