mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
* quick poc at using cmake to generate the defaults.h traits files * add test preset to dev * self review * poc moving logic to actions * Remove stale defaults.h generation configuration * Fix file path in lint workflow configuration * chmod +x * linter * linter * clean up action and lint workflow * rm source_dir cli arg from cmake script now just assume the current directory is correct * linter * fix order * add workflow preset for running unit test sadly then is less reusable than i wanted
112 lines
3.4 KiB
YAML
112 lines
3.4 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.19", name: "3.0.19" }
|
|
- { tag: "openssl-3.5.5", name: "3.5.5" }
|
|
- { tag: "openssl-3.6.1", name: "3.6.1" }
|
|
- { tag: "OpenSSL_1_1_1w", name: "1.1.1w" }
|
|
- { tag: "OpenSSL_1_1_0i", name: "1.1.0i" } # Do not bump, there's a bug in the autoconf 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@v4
|
|
- uses: lukka/get-cmake@latest
|
|
- uses: ./.github/actions/install/gtest
|
|
- uses: ./.github/actions/install/openssl
|
|
with:
|
|
version: ${{ matrix.openssl.tag }}
|
|
|
|
- run: cmake --workflow --preset unit-tests
|
|
|
|
- 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.6 No Deprecated
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lukka/get-cmake@latest
|
|
- uses: ./.github/actions/install/gtest
|
|
- uses: ./.github/actions/install/openssl
|
|
with:
|
|
version: "openssl-3.6.1"
|
|
|
|
- name: configure
|
|
run: cmake --preset unit-tests -DCMAKE_CXX_FLAGS="-DOPENSSL_NO_DEPRECATED=1" -DCMAKE_C_FLAGS="-DOPENSSL_NO_DEPRECATED=1"
|
|
- run: cmake --build --preset unit-tests
|
|
- name: test
|
|
run: ctest --preset unit-tests --output-on-failure
|
|
|
|
libressl:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
libressl: ["4.2.1", "4.1.2", "3.9.2"]
|
|
name: LibreSSL ${{ matrix.libressl }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lukka/get-cmake@latest
|
|
- uses: ./.github/actions/install/gtest
|
|
- uses: ./.github/actions/install/libressl
|
|
with:
|
|
version: ${{ matrix.libressl }}
|
|
|
|
- name: configure
|
|
run: cmake --preset unit-tests -DJWT_SSL_LIBRARY:STRING=LibreSSL
|
|
- run: cmake --build --preset unit-tests
|
|
- name: test
|
|
run: ctest --preset unit-tests --output-on-failure
|
|
|
|
- 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"}
|
|
- { ref: "v5.7.0-stable", name: "5.7.0"}
|
|
name: wolfSSL ${{ matrix.wolfssl.name }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lukka/get-cmake@latest
|
|
- uses: ./.github/actions/install/gtest
|
|
- uses: ./.github/actions/install/wolfssl
|
|
with:
|
|
version: ${{ matrix.wolfssl.ref }}
|
|
|
|
- name: configure
|
|
run: cmake --preset unit-tests -DJWT_SSL_LIBRARY:STRING=wolfSSL
|
|
- run: cmake --build --preset unit-tests
|
|
- name: test
|
|
run: ctest --preset unit-tests --output-on-failure
|
|
|
|
- if: github.event_name == 'push' && always()
|
|
uses: ./.github/actions/badge
|
|
with:
|
|
category: wolfssl
|
|
label: ${{ matrix.wolfssl.name }}
|