mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
66 lines
1.3 KiB
YAML
66 lines
1.3 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]
|
|
arch: [x64]
|
|
cmake: [3.7, 3.18]
|
|
|
|
include:
|
|
- runs-on: windows-latest
|
|
arch: x64
|
|
cmake: 3.18
|
|
|
|
# TODO: 3.8
|
|
- runs-on: windows-2016
|
|
arch: x86
|
|
cmake: 3.11
|
|
|
|
- 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)")
|