mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
ci: better output / more config
This commit is contained in:
parent
ed6de125c9
commit
c664d55757
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -38,6 +38,14 @@ jobs:
|
|||||||
python: 3.7
|
python: 3.7
|
||||||
arch: x86
|
arch: x86
|
||||||
max-cxx-std: 14
|
max-cxx-std: 14
|
||||||
|
- runs-on: windows-latest
|
||||||
|
python: 3.6
|
||||||
|
arch: x64
|
||||||
|
max-cxx-std: 17
|
||||||
|
- runs-on: windows-latest
|
||||||
|
python: 3.7
|
||||||
|
arch: x64
|
||||||
|
max-cxx-std: 17
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
# Currently 32bit only, and we build 64bit
|
# Currently 32bit only, and we build 64bit
|
||||||
|
77
.github/workflows/configure.yml
vendored
77
.github/workflows/configure.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Configure
|
name: Config
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -14,63 +14,50 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python:
|
runs-on: [ubuntu-latest, macos-latest]
|
||||||
- 2.7
|
arch: [x64]
|
||||||
- 3.8
|
cmake: [3.7, 3.18]
|
||||||
|
|
||||||
name: CMake ${{ matrix.cmake }} Python ${{ matrix.python }} on ubuntu
|
include:
|
||||||
runs-on: ubuntu-latest
|
- 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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Python ${{ matrix.python }}
|
- name: Setup Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: 3.7
|
||||||
|
architecture: ${{ matrix.arch }}
|
||||||
|
|
||||||
- name: Prepare env
|
- name: Prepare env
|
||||||
run: python -m pip install -r tests/requirements.txt
|
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
|
- name: Make build directories
|
||||||
run: |
|
run: mkdir "build dir"
|
||||||
mkdir build3.7
|
|
||||||
mkdir build3.11
|
|
||||||
mkdir build3.18
|
|
||||||
|
|
||||||
- name: Setup CMake 3.7
|
- name: Configure
|
||||||
uses: jwlawson/actions-setup-cmake@v1.3
|
working-directory: build dir
|
||||||
with:
|
shell: bash
|
||||||
cmake-version: 3.7
|
|
||||||
|
|
||||||
- name: Configure 3.7
|
|
||||||
working-directory: build3.7
|
|
||||||
run: >
|
|
||||||
cmake ..
|
|
||||||
-DPYBIND11_WERROR=ON
|
|
||||||
-DDOWNLOAD_CATCH=ON
|
|
||||||
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
|
|
||||||
|
|
||||||
- name: Setup CMake 3.11
|
|
||||||
uses: jwlawson/actions-setup-cmake@v1.3
|
|
||||||
with:
|
|
||||||
cmake-version: 3.11
|
|
||||||
|
|
||||||
- name: Configure 3.11
|
|
||||||
working-directory: build3.11
|
|
||||||
run: >
|
|
||||||
cmake ..
|
|
||||||
-DPYBIND11_WERROR=ON
|
|
||||||
-DDOWNLOAD_CATCH=ON
|
|
||||||
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
|
|
||||||
|
|
||||||
- name: Setup CMake 3.18
|
|
||||||
uses: jwlawson/actions-setup-cmake@v1.3
|
|
||||||
with:
|
|
||||||
cmake-version: 3.18
|
|
||||||
|
|
||||||
- name: Configure 3.18
|
|
||||||
working-directory: build3.18
|
|
||||||
run: >
|
run: >
|
||||||
cmake ..
|
cmake ..
|
||||||
-DPYBIND11_WERROR=ON
|
-DPYBIND11_WERROR=ON
|
||||||
|
Loading…
Reference in New Issue
Block a user