ci: cmake Configure test (#2327)

This commit is contained in:
Henry Schreiner 2020-07-28 20:13:09 -04:00 committed by GitHub
parent 8e40e389fd
commit 1491c94c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 81 additions and 0 deletions

81
.github/workflows/configure.yml vendored Normal file
View File

@ -0,0 +1,81 @@
name: Configure
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- stable
- v*
jobs:
cmake:
strategy:
fail-fast: false
matrix:
python:
- 2.7
- 3.8
name: CMake ${{ matrix.cmake }} Python ${{ matrix.python }} on ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Prepare env
run: python -m pip install -r tests/requirements.txt
- name: Make build directories
run: |
mkdir build2.8
mkdir build3.7
mkdir build3.18
- name: Setup CMake 2.8
uses: jwlawson/actions-setup-cmake@v1.3
with:
cmake-version: 2.8
- name: Configure 2.8
working-directory: build2.8
run: >
cmake --version &&
cmake ..
-DPYBIND11_WERROR=ON
-DDOWNLOAD_CATCH=ON
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
- name: Setup CMake 3.7
uses: jwlawson/actions-setup-cmake@v1.3
with:
cmake-version: 3.7
- name: Configure 3.7
working-directory: build3.7
run: >
cmake --version &&
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: >
cmake --version &&
cmake ..
-DPYBIND11_WERROR=ON
-DDOWNLOAD_CATCH=ON
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")