mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 09:03:54 +00:00
1729aae96f
* feat: FindPython support * refactor: rename to PYBIND11_FINDPYTHON * docs: Caps fixes * feat: NOPYTHON mode * test: check simple call * docs: add changelog/upgrade guide * feat: Support Python3 and Python2 * refactor: Use targets in tests * fix: support CMake 3.4+ * feat: classic search also finds virtual environments * docs: some updates from @wjakob's review * fix: wrong name for QUIET mode variable, reported by @skoslowski * refactor: cleaner output messaging * fix: support debug Python's in FindPython mode too * fixup! refactor: cleaner output messaging * fix: missing pybind11_FOUND and pybind11_INCLUDE_DIR restored to subdir mode * fix: nicer reporting of Python / PyPy * fix: out-of-order variable fix * docs: minor last-minute cleanup
79 lines
1.7 KiB
YAML
79 lines
1.7 KiB
YAML
name: Config
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- stable
|
|
- v*
|
|
|
|
jobs:
|
|
cmake:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runs-on: [ubuntu-latest, macos-latest, windows-latest]
|
|
arch: [x64]
|
|
cmake: [3.18]
|
|
|
|
include:
|
|
- runs-on: ubuntu-latest
|
|
arch: x64
|
|
cmake: 3.4
|
|
|
|
- runs-on: macos-latest
|
|
arch: x64
|
|
cmake: 3.7
|
|
|
|
- runs-on: windows-2016
|
|
arch: x86
|
|
cmake: 3.8
|
|
|
|
- runs-on: windows-2016
|
|
arch: x86
|
|
cmake: 3.18
|
|
|
|
name: 🐍 3.7 • CMake ${{ matrix.cmake }} • ${{ matrix.runs-on }}
|
|
runs-on: ${{ matrix.runs-on }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Python 3.7
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.7
|
|
architecture: ${{ matrix.arch }}
|
|
|
|
- name: Prepare env
|
|
run: python -m pip install -r tests/requirements.txt
|
|
|
|
- name: Setup CMake ${{ matrix.cmake }}
|
|
uses: jwlawson/actions-setup-cmake@v1.3
|
|
with:
|
|
cmake-version: ${{ matrix.cmake }}
|
|
|
|
- name: Make build directories
|
|
run: mkdir "build dir"
|
|
|
|
- name: Configure
|
|
working-directory: build dir
|
|
shell: bash
|
|
run: >
|
|
cmake ..
|
|
-DPYBIND11_WERROR=ON
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
|
|
|
|
- name: Build
|
|
working-directory: build dir
|
|
if: github.event_name == 'workflow_dispatch'
|
|
run: cmake --build . --config Release
|
|
|
|
- name: Test
|
|
working-directory: build dir
|
|
if: github.event_name == 'workflow_dispatch'
|
|
run: cmake --build . --config Release --target check
|