GA: Install libraries.
@@ -28,6 +28,18 @@ jobs:
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DTINYSPLINE_FLOAT_PRECISION=${{ matrix.float }}
+ - name: Configure Installation
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: |
+ if [ "$RUNNER_OS" == "Linux" ]; then
+ cmake -DCMAKE_INSTALL_PREFIX=~/tinyspline -DTINYSPLINE_INSTALL_LIBRARY_DIR=lib .
+ elif [ "$RUNNER_OS" == "Windows" ]; then
+ cmake -DCMAKE_INSTALL_PREFIX=C:/tinyspline -DTINYSPLINE_INSTALL_LIBRARY_DIR=lib .
+ else
+ cmake -DCMAKE_INSTALL_PREFIX=~/tinyspline .
+ fi
+
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
@@ -37,3 +49,8 @@ jobs:
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest -C $BUILD_TYPE
+
+ - name: Install
+ working-directory: ${{runner.workspace}}/build
+ shell: bash
+ run: cmake --build . --target install
