Skip to content

Commit 9bd1b6a

Browse files
committed
debug: try stuff
1 parent 38ca7d9 commit 9bd1b6a

File tree

1 file changed

+5
-226
lines changed

1 file changed

+5
-226
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 226 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
runs-on: [ubuntu-latest, windows-latest, macos-latest]
17+
runs-on: [windows-latest]
1818
arch: [x64]
1919
max-cxx-std: [17]
2020
python:
@@ -26,14 +26,6 @@ jobs:
2626
- pypy3
2727

2828
include:
29-
- runs-on: ubuntu-latest
30-
python: 3.6
31-
arch: x64
32-
max-cxx-std: 17
33-
- runs-on: macos-latest
34-
python: 3.7
35-
arch: x64
36-
max-cxx-std: 17
3729
- runs-on: windows-2016
3830
python: 3.7
3931
arch: x86
@@ -58,17 +50,6 @@ jobs:
5850
arch: x64
5951
max-cxx-std: 17
6052

61-
# Currently can't build due to warning, fixed in CPython > 3.9b5
62-
- runs-on: macos-latest
63-
python: 3.9-dev
64-
arch: x64
65-
max-cxx-std: 17
66-
67-
# Currently broken on embed_test
68-
- runs-on: windows-latest
69-
python: 3.8
70-
arch: x64
71-
max-cxx-std: 17
7253
- runs-on: windows-latest
7354
python: 3.9-dev
7455
arch: x64
@@ -113,6 +94,8 @@ jobs:
11394
- name: Build C++11
11495
run: cmake --build . -j 2
11596

97+
- run: tree /f
98+
11699
- name: Python tests C++11
117100
run: cmake --build . --target pytest -j 2
118101

@@ -138,6 +121,8 @@ jobs:
138121
- name: Build C++${{ matrix.max-cxx-std }}
139122
run: cmake --build build2 -j 2
140123

124+
- run: tree /f
125+
141126
- name: Python tests C++${{ matrix.max-cxx-std }}
142127
run: cmake --build build2 --target pytest
143128

@@ -146,209 +131,3 @@ jobs:
146131

147132
- name: Interface test C++${{ matrix.max-cxx-std }}
148133
run: cmake --build build2 --target test_cmake_build
149-
150-
clang:
151-
runs-on: ubuntu-latest
152-
strategy:
153-
fail-fast: false
154-
matrix:
155-
clang:
156-
- 3.6
157-
- 3.7
158-
- 3.9
159-
- 5
160-
- 7
161-
- 9
162-
- dev
163-
164-
name: "🐍 3 • Clang ${{ matrix.clang }} • x64"
165-
container: "silkeh/clang:${{ matrix.clang }}"
166-
167-
steps:
168-
- uses: actions/checkout@v2
169-
170-
- name: Add wget and python3
171-
run: apt-get update && apt-get install -y python3-dev python3-numpy python3-pytest libeigen3-dev
172-
173-
- name: Configure
174-
shell: bash
175-
run: >
176-
cmake -S . -B build
177-
-DPYBIND11_WERROR=ON
178-
-DDOWNLOAD_CATCH=ON
179-
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
180-
181-
- name: Build
182-
run: cmake --build build -j 2
183-
184-
- name: Python tests
185-
run: cmake --build build --target pytest
186-
187-
- name: C++ tests
188-
run: cmake --build build --target cpptest
189-
190-
- name: Interface test
191-
run: cmake --build build --target test_cmake_build
192-
193-
gcc:
194-
runs-on: ubuntu-latest
195-
strategy:
196-
fail-fast: false
197-
matrix:
198-
gcc:
199-
- 7
200-
- latest
201-
202-
name: "🐍 3 • GCC ${{ matrix.gcc }} • x64"
203-
container: "gcc:${{ matrix.gcc }}"
204-
205-
steps:
206-
- uses: actions/checkout@v1
207-
208-
- name: Add Python 3
209-
run: apt-get update; apt-get install -y python3-dev python3-numpy python3-pytest python3-pip libeigen3-dev
210-
211-
- name: Update pip
212-
run: python3 -m pip install --upgrade pip
213-
214-
- name: Setup CMake 3.18
215-
uses: jwlawson/[email protected]
216-
with:
217-
cmake-version: 3.18
218-
219-
- name: Configure
220-
shell: bash
221-
run: >
222-
cmake -S . -B build
223-
-DPYBIND11_WERROR=ON
224-
-DDOWNLOAD_CATCH=ON
225-
-DCMAKE_CXX_STANDARD=11
226-
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
227-
228-
- name: Build
229-
run: cmake --build build -j 2
230-
231-
- name: Python tests
232-
run: cmake --build build --target pytest
233-
234-
- name: C++ tests
235-
run: cmake --build build --target cpptest
236-
237-
- name: Interface test
238-
run: cmake --build build --target test_cmake_build
239-
240-
centos:
241-
runs-on: ubuntu-latest
242-
strategy:
243-
fail-fast: false
244-
matrix:
245-
centos:
246-
- 7 # GCC 4.8
247-
- 8
248-
249-
name: "🐍 3 • CentOS ${{ matrix.centos }} • x64"
250-
container: "centos:${{ matrix.centos }}"
251-
252-
steps:
253-
- uses: actions/checkout@v2
254-
255-
- name: Add Python 3
256-
run: yum update -y && yum install -y python3-devel gcc-c++ make git
257-
258-
- name: Update pip
259-
run: python3 -m pip install --upgrade pip
260-
261-
- name: Install dependencies
262-
run: python3 -m pip install cmake -r tests/requirements.txt
263-
264-
- name: Configure
265-
shell: bash
266-
run: >
267-
cmake -S . -B build
268-
-DPYBIND11_WERROR=ON
269-
-DDOWNLOAD_CATCH=ON
270-
-DDOWNLOAD_EIGEN=ON
271-
-DCMAKE_CXX_STANDARD=11
272-
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
273-
274-
- name: Build
275-
run: cmake --build build -j 2
276-
277-
- name: Python tests
278-
run: cmake --build build --target pytest
279-
280-
- name: C++ tests
281-
run: cmake --build build --target cpptest
282-
283-
- name: Interface test
284-
run: cmake --build build --target test_cmake_build
285-
286-
install-classic:
287-
name: "🐍 3.5 • Debian • x86 • Install"
288-
runs-on: ubuntu-latest
289-
container: i386/debian:stretch
290-
291-
steps:
292-
- uses: actions/checkout@v1
293-
294-
- name: Install requirements
295-
run: |
296-
apt-get update
297-
apt-get install -y git make cmake g++ libeigen3-dev python3-dev python3-pip python3-pytest
298-
299-
- name: Configure for install
300-
run: >
301-
cmake .
302-
-DPYBIND11_INSTALL=1 -DPYBIND11_TEST=0
303-
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
304-
305-
- name: Make and install
306-
run: make install
307-
308-
- name: Copy tests to new directory
309-
run: cp -a tests /pybind11-tests
310-
311-
- name: Make a new test directory
312-
run: mkdir /build-tests
313-
314-
- name: Configure tests
315-
run: >
316-
cmake ../pybind11-tests
317-
-DDOWNLOAD_CATCH=ON
318-
-DPYBIND11_WERROR=ON
319-
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
320-
working-directory: /build-tests
321-
322-
- name: Run tests
323-
run: make pytest -j 2
324-
working-directory: /build-tests
325-
326-
327-
doxygen:
328-
name: "Documentation build test"
329-
runs-on: ubuntu-latest
330-
container: alpine:3.12
331-
332-
steps:
333-
- uses: actions/checkout@v2
334-
335-
- name: Install requirements
336-
run: apk add doxygen python3-dev
337-
338-
- name: Ensure pip
339-
run: python3 -m ensurepip
340-
341-
- name: Install python docs requirements
342-
run: python3 -m pip install "sphinx<3" sphinx_rtd_theme breathe==4.13.1 pytest setuptools
343-
344-
- name: Build docs
345-
run: python3 -m sphinx -W -b html docs docs/.build
346-
347-
- name: Make SDist
348-
run: python3 setup.py sdist
349-
350-
- name: Compare Dists (headers only)
351-
run: |
352-
python3 -m pip install --user -U ./dist/*
353-
installed=$(python3 -c "import pybind11; print(pybind11.get_include(True) + '/pybind11')")
354-
diff -rq $installed ./include/pybind11

0 commit comments

Comments
 (0)