fetchit.2 #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |