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
121 lines
3.0 KiB
YAML
121 lines
3.0 KiB
YAML
name: CMake CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- "CMakeLists.txt"
|
|
- "include/jwt-cpp/**"
|
|
- "tests/cmake/**"
|
|
- ".github/actions/**"
|
|
- ".github/workflows/cmake.yml"
|
|
|
|
jobs:
|
|
min-req:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install cmake
|
|
run: |
|
|
wget https://cmake.org/files/v3.8/cmake-3.8.2.tar.gz
|
|
tar -zxf cmake-3.8.2.tar.gz
|
|
cd cmake-3.8.2
|
|
./bootstrap && make -j $(nproc) && sudo make install
|
|
|
|
- name: setup
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DJWT_BUILD_EXAMPLES=OFF
|
|
sudo make install
|
|
|
|
- name: test
|
|
run: |
|
|
cd tests/cmake
|
|
cmake . -DCMAKE_PREFIX_PATH=/usr/local/cmake -DTEST:STRING="defaults-enabled"
|
|
cmake --build .
|
|
|
|
custom-install:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install cmake
|
|
uses: lukka/get-cmake@latest
|
|
|
|
- name: setup
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_INSTALL_PREFIX:STRING="/opt/jwt-cpp" -DJWT_BUILD_EXAMPLES=OFF
|
|
make install
|
|
|
|
- name: test
|
|
run: |
|
|
cd tests/cmake
|
|
cmake . -DCMAKE_PREFIX_PATH=/opt/jwt-cpp/cmake -DTEST:STRING="defaults-enabled"
|
|
cmake --build .
|
|
|
|
no-pico:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install cmake
|
|
uses: lukka/get-cmake@latest
|
|
|
|
- name: setup
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DJWT_DISABLE_PICOJSON=ON -DJWT_BUILD_EXAMPLES=OFF
|
|
sudo make install
|
|
|
|
- name: test
|
|
run: |
|
|
cd tests/cmake
|
|
cmake . -DCMAKE_PREFIX_PATH=/usr/local/cmake -DTEST:STRING="picojson-is-disabled"
|
|
cmake --build .
|
|
|
|
no-base64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install cmake
|
|
uses: lukka/get-cmake@latest
|
|
|
|
- name: setup
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DJWT_DISABLE_BASE64=ON -DJWT_BUILD_EXAMPLES=OFF
|
|
sudo make install
|
|
|
|
- name: test
|
|
run: |
|
|
cd tests/cmake
|
|
cmake . -DCMAKE_PREFIX_PATH=/usr/local/cmake -DTEST:STRING="base64-is-disabled"
|
|
cmake --build .
|
|
|
|
with-libressl:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install cmake
|
|
uses: lukka/get-cmake@latest
|
|
- name: install libressl
|
|
uses: ./.github/actions/install/libressl
|
|
|
|
- name: setup
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DJWT_SSL_LIBRARY:STRING="LibreSSL" -DJWT_BUILD_EXAMPLES=OFF
|
|
sudo make install
|
|
|
|
- name: test
|
|
run: |
|
|
cd tests/cmake
|
|
cmake . -DCMAKE_PREFIX_PATH=/usr/local/cmake -DCMAKE_MODULE_PATH=../../cmake -DTEST:STRING="libressl-is-used"
|
|
cmake --build .
|