Skip to content

fetchit.2

fetchit.2 #3

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) Contributors to the OpenEXR Project.
#
name: CI-fetchcontent
#
# Test that Imath is configured properly for FetchContent
#
on:
push:
paths:
- '**'
- '!**.md'
- '!share/ci/**'
- '!.github/workflows/**'
- '.github/workflows/ci_fetchcontent.yml'
pull_request:
paths:
- '**'
- '!**.md'
- '!share/ci/**'
- '!.github/workflows/**'
- '.github/workflows/ci_fetchcontent.yml'
permissions:
contents: read
jobs:
build:
name: FetchContent on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Configure & Build
run: |
cmake -S src/ImathTest -B _build \
-DIMATH_REPO=https://github.com/$GITHUB_REPOSITORY \
-DIMATH_TAG=${GITHUB_REF##*/}
cmake --build _build --config Release