Skip to content

ci: cmake Configure test #2327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/configure.yml
Original file line number Diff line number Diff line change
@@ -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)")