mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
* some manual fixes to obtain * fairly close enough * whitespace fixes * add comment * adding clang format + applied * add editorconfig (supported natively by github web editor) * apply linting to project * clean up CI workflows * zap vcpkg folder actual one is here https://github.com/microsoft/vcpkg/tree/master/ports/jwt-cpp * adding a logo * thin the lines in the pluses * use logo + more links to spec and examples * Create lint.yml * apply linting
59 lines
1.8 KiB
YAML
59 lines
1.8 KiB
YAML
name: LibreSSL CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- "CMakeLists.txt"
|
|
- "include/jwt-cpp/**"
|
|
- "tests/*"
|
|
- ".github/actions/**"
|
|
- ".github/workflows/libressl.yml"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
libressl: ["3.3.0", "3.2.2"]
|
|
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()
|
|
run: |
|
|
mkdir -p badges/libressl/${{ matrix.libressl }}
|
|
echo '{ "schemaVersion": 1, "label": "${{ matrix.libressl }}", "message": "Passing", "color": "brightgreen" }' > badges/libressl/${{ matrix.libressl }}/shields.json
|
|
|
|
- name: badge failure
|
|
if: github.event_name == 'push' && !success()
|
|
run: |
|
|
mkdir -p badges/libressl/${{ matrix.libressl }}
|
|
echo '{ "schemaVersion": 1, "label": "${{ matrix.libressl }}", "message": "Failing", "color": "red" }' > badges/libressl/${{ matrix.libressl }}/shields.json
|
|
|
|
- name: badge publish
|
|
if: github.event_name == 'push'
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_branch: badges
|
|
publish_dir: ./badges
|
|
keep_files: true
|
|
user_name: "github-actions[bot]"
|
|
user_email: "github-actions[bot]@users.noreply.github.com"
|