mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-29 02:51:59 -05:00
f1a494cfd2
This fixes annotations on task runs like the following: The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
26 lines
807 B
YAML
26 lines
807 B
YAML
name: cmake_find_package
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
cmake-find-package:
|
|
name: Build ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, macos-latest ]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: lukka/get-cmake@latest
|
|
with:
|
|
cmakeVersion: 3.14.0
|
|
- name: Configure GSL
|
|
run: cmake -S . -B build -G "Ninja" -D GSL_TEST=OFF -D CMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/build/install
|
|
- name: Install GSL
|
|
run: cmake --build build --target install
|
|
- name: Test GSL find_package support
|
|
run: cmake -S tests/ -B build/tests_find_package -G "Ninja" -D CMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/build/install -D CMAKE_BUILD_TYPE=Release
|