📬 adding test for non-default cmake install prefix (#116)

* adding test for non-default cmake install prefix

This is to follow up from https://github.com/Thalhammer/jwt-cpp/pull/114#issuecomment-739573587
This commit is contained in:
Chris Mc
2020-12-30 22:24:13 -05:00
committed by GitHub
parent 159527930e
commit c83767e8c6
3 changed files with 30 additions and 0 deletions

View File

@@ -36,6 +36,26 @@ jobs:
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:

View File

@@ -5,6 +5,11 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
paths:
- 'CMakeLists.txt'
- 'include/jwt-cpp/**'
- 'tests/*'
- '.github/workflows/coverate.yml'
jobs:
build:

View File

@@ -5,6 +5,11 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
paths:
- 'CMakeLists.txt'
- 'include/jwt-cpp/**'
- 'tests/*'
- '.github/workflows/libressl.yml'
jobs:
build: