Delete gsl/string_span (#1185)
[GSL.git] / .github / workflows / cmake_find_package.yml
blobfd2f7a812ca21e4e125058e50acadd6b5ccb28ec
1 name: cmake_find_package
2 on:
3   push:
4     branches: [ main ]
5   pull_request:
6     branches: [ main ]
8 jobs:
9   cmake-find-package:
10     name: Build ${{ matrix.os }}
11     runs-on: ${{ matrix.os }}
12     strategy:
13       matrix:
14         os: [ ubuntu-latest, macos-latest ]
15     steps:
16       - uses: actions/checkout@v4
17       - uses: lukka/get-cmake@latest
18         with:
19           cmakeVersion: 3.14.0
20       - name: Configure GSL
21         run: cmake -S . -B build -G "Ninja" -D GSL_TEST=OFF -D CMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/build/install
22       - name: Install GSL
23         run: cmake --build build --target install
24       - name: Test GSL find_package support
25         run: cmake -S tests/ -B build/tests_find_package -G "Ninja" -D CMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/build/install -D CMAKE_BUILD_TYPE=Release