mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
Tracking ci.yml changes from master.
This commit is contained in:
parent
645bcd47d0
commit
d095a9bcff
139
.github/workflows/ci_sh_def.yml
vendored
139
.github/workflows/ci_sh_def.yml
vendored
@ -994,3 +994,142 @@ jobs:
|
|||||||
|
|
||||||
- name: Interface test C++17
|
- name: Interface test C++17
|
||||||
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target test_cmake_build
|
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target test_cmake_build
|
||||||
|
|
||||||
|
windows_clang:
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [windows-latest]
|
||||||
|
python: ['3.10']
|
||||||
|
|
||||||
|
runs-on: "${{ matrix.os }}"
|
||||||
|
|
||||||
|
name: "🐍 ${{ matrix.python }} • ${{ matrix.os }} • clang-latest"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Show env
|
||||||
|
run: env
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Clang
|
||||||
|
uses: egor-tensin/setup-clang@v1
|
||||||
|
|
||||||
|
- name: Setup Python ${{ matrix.python }}
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python }}
|
||||||
|
|
||||||
|
- name: Update CMake
|
||||||
|
uses: jwlawson/actions-setup-cmake@v1.13
|
||||||
|
|
||||||
|
- name: Install ninja-build tool
|
||||||
|
uses: seanmiddleditch/gha-setup-ninja@v3
|
||||||
|
|
||||||
|
- name: Run pip installs
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install -r tests/requirements.txt
|
||||||
|
|
||||||
|
- name: Show Clang++ version
|
||||||
|
run: clang++ --version
|
||||||
|
|
||||||
|
- name: Show CMake version
|
||||||
|
run: cmake --version
|
||||||
|
|
||||||
|
# TODO: WERROR=ON
|
||||||
|
- name: Configure Clang
|
||||||
|
run: >
|
||||||
|
cmake -G Ninja -S . -B .
|
||||||
|
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||||
|
-DPYBIND11_WERROR=OFF
|
||||||
|
-DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
|
||||||
|
-DDOWNLOAD_CATCH=ON
|
||||||
|
-DDOWNLOAD_EIGEN=ON
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++
|
||||||
|
-DCMAKE_CXX_STANDARD=17
|
||||||
|
-DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build . -j 2
|
||||||
|
|
||||||
|
- name: Python tests
|
||||||
|
run: cmake --build . --target pytest -j 2
|
||||||
|
|
||||||
|
- name: C++ tests
|
||||||
|
run: cmake --build . --target cpptest -j 2
|
||||||
|
|
||||||
|
- name: Interface test
|
||||||
|
run: cmake --build . --target test_cmake_build -j 2
|
||||||
|
|
||||||
|
- name: Clean directory
|
||||||
|
run: git clean -fdx
|
||||||
|
|
||||||
|
macos_brew_install_llvm:
|
||||||
|
name: "macos-latest • brew install llvm"
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
# https://apple.stackexchange.com/questions/227026/how-to-install-recent-clang-with-homebrew
|
||||||
|
LDFLAGS: '-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Update PATH
|
||||||
|
run: echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Show env
|
||||||
|
run: env
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Show Clang++ version before brew install llvm
|
||||||
|
run: clang++ --version
|
||||||
|
|
||||||
|
- name: brew install llvm
|
||||||
|
run: brew install llvm
|
||||||
|
|
||||||
|
- name: Show Clang++ version after brew install llvm
|
||||||
|
run: clang++ --version
|
||||||
|
|
||||||
|
- name: Update CMake
|
||||||
|
uses: jwlawson/actions-setup-cmake@v1.13
|
||||||
|
|
||||||
|
- name: Run pip installs
|
||||||
|
run: |
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
python3 -m pip install -r tests/requirements.txt
|
||||||
|
python3 -m pip install numpy
|
||||||
|
python3 -m pip install scipy
|
||||||
|
|
||||||
|
- name: Show CMake version
|
||||||
|
run: cmake --version
|
||||||
|
|
||||||
|
- name: CMake Configure
|
||||||
|
run: >
|
||||||
|
cmake -S . -B .
|
||||||
|
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||||
|
-DPYBIND11_WERROR=ON
|
||||||
|
-DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
|
||||||
|
-DDOWNLOAD_CATCH=ON
|
||||||
|
-DDOWNLOAD_EIGEN=ON
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++
|
||||||
|
-DCMAKE_CXX_STANDARD=17
|
||||||
|
-DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
||||||
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build . -j 2
|
||||||
|
|
||||||
|
- name: Python tests
|
||||||
|
run: cmake --build . --target pytest -j 2
|
||||||
|
|
||||||
|
- name: C++ tests
|
||||||
|
run: cmake --build . --target cpptest -j 2
|
||||||
|
|
||||||
|
- name: Interface test
|
||||||
|
run: cmake --build . --target test_cmake_build -j 2
|
||||||
|
|
||||||
|
- name: Clean directory
|
||||||
|
run: git clean -fdx
|
||||||
|
20
.github/workflows/ci_sh_def.yml.patch
vendored
20
.github/workflows/ci_sh_def.yml.patch
vendored
@ -1,5 +1,5 @@
|
|||||||
--- ci.yml 2022-10-30 13:26:32.377345870 -0700
|
--- ci.yml 2022-11-18 08:56:49.472080960 -0800
|
||||||
+++ ci_sh_def.yml 2022-10-30 13:32:48.125051576 -0700
|
+++ ci_sh_def.yml 2022-11-18 09:00:36.986976092 -0800
|
||||||
@@ -1,4 +1,16 @@
|
@@ -1,4 +1,16 @@
|
||||||
-name: CI
|
-name: CI
|
||||||
+# PLEASE KEEP THIS GROUP OF FILES IN SYNC AT ALL TIMES:
|
+# PLEASE KEEP THIS GROUP OF FILES IN SYNC AT ALL TIMES:
|
||||||
@ -177,3 +177,19 @@
|
|||||||
|
|
||||||
- name: Build C++17
|
- name: Build C++17
|
||||||
run: cmake --build build3 -j 2
|
run: cmake --build build3 -j 2
|
||||||
|
@@ -1023,6 +1049,7 @@
|
||||||
|
-DDOWNLOAD_EIGEN=ON
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++
|
||||||
|
-DCMAKE_CXX_STANDARD=17
|
||||||
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cmake --build . -j 2
|
||||||
|
@@ -1089,6 +1116,7 @@
|
||||||
|
-DDOWNLOAD_EIGEN=ON
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++
|
||||||
|
-DCMAKE_CXX_STANDARD=17
|
||||||
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
||||||
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
Loading…
Reference in New Issue
Block a user