From c83767e8c60db941d6166ce048ce0ea07e21f6b5 Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Wed, 30 Dec 2020 22:24:13 -0500 Subject: [PATCH] :mailbox_with_mail: 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 --- .github/workflows/cmake.yml | 20 ++++++++++++++++++++ .github/workflows/coverage.yml | 5 +++++ .github/workflows/libresssl.yml | 5 +++++ 3 files changed, 30 insertions(+) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index b54b41c..6454a3e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 638c30f..b456883 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -5,6 +5,11 @@ on: branches: [ master ] pull_request: branches: [ master ] + paths: + - 'CMakeLists.txt' + - 'include/jwt-cpp/**' + - 'tests/*' + - '.github/workflows/coverate.yml' jobs: build: diff --git a/.github/workflows/libresssl.yml b/.github/workflows/libresssl.yml index 34e2719..d552830 100644 --- a/.github/workflows/libresssl.yml +++ b/.github/workflows/libresssl.yml @@ -5,6 +5,11 @@ on: branches: [ master ] pull_request: branches: [ master ] + paths: + - 'CMakeLists.txt' + - 'include/jwt-cpp/**' + - 'tests/*' + - '.github/workflows/libressl.yml' jobs: build: