-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
1 parent
ac3de9e
commit b21d80c
Showing
45 changed files
with
2,418 additions
and
2,524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
BasedOnStyle: LLVM | ||
BreakBeforeBraces: Attach | ||
|
||
ColumnLimit: 120 # Match GitHub UI | ||
|
||
UseTab: Always | ||
TabWidth: 4 | ||
IndentWidth: 4 | ||
AccessModifierOffset: -4 | ||
ContinuationIndentWidth: 4 | ||
NamespaceIndentation: All | ||
IndentCaseLabels: false | ||
|
||
PointerAlignment: Left | ||
AlwaysBreakTemplateDeclarations: Yes | ||
SpaceAfterTemplateKeyword: false | ||
AllowShortCaseLabelsOnASingleLine: true | ||
AllowShortIfStatementsOnASingleLine: WithoutElse | ||
AllowShortBlocksOnASingleLine: Always | ||
|
||
FixNamespaceComments: true | ||
ReflowComments: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
root = true | ||
|
||
[!*.{h,cpp}] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{h,cpp}] | ||
indent_style = tab | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,119 +1,120 @@ | ||
name: CMake Integration CI | ||
name: CMake CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
paths: | ||
- 'CMakeLists.txt' | ||
- 'include/jwt-cpp/**' | ||
- 'tests/cmake/**' | ||
- '.github/workflows/cmake.yml' | ||
- "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 . | ||
- 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 . | ||
- 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 . | ||
- 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 . | ||
- 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 . | ||
- 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 . |
Oops, something went wrong.