Skip to content

Commit 14babe0

Browse files
committed
fixing weels build
1 parent 890fee7 commit 14babe0

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ ubuntu-22.04, macos-14, windows-2022 ]
17+
os: [ubuntu-latest, macos-latest, windows-latest]
1818

1919
steps:
2020
- uses: actions/checkout@v6

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ endif()
1010
project(polysolve_python LANGUAGES CXX)
1111
################################################################################
1212

13+
set(CMAKE_CXX_STANDARD 17)
14+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
15+
set(CMAKE_CXX_EXTENSIONS OFF)
16+
1317
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
1418

1519
if(NOT DEFINED CPM_SOURCE_CACHE)

pyproject.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ Issues = "https://github.com/polyfem/polysolve-python/issues"
4949
[tool.scikit-build]
5050
cmake.version = ">=3.18"
5151
build-dir = "_skbuild/{wheel_tag}"
52-
cmake.args = ["-DPYBIND11_FINDPYTHON=ON", "-DCMAKE_BUILD_TYPE=Release", "-DPOLYSOLVE_WITH_AMGCL=OFF"]
52+
cmake.args = [
53+
"-DPYBIND11_FINDPYTHON=ON",
54+
"-DCMAKE_BUILD_TYPE=Release",
55+
"-DPOLYSOLVE_WITH_AMGCL=OFF",
56+
"-DCMAKE_CXX_STANDARD=17",
57+
"-DCMAKE_CXX_STANDARD_REQUIRED=ON",
58+
"-DCMAKE_CXX_EXTENSIONS=OFF",
59+
]
5360
wheel.exclude = [
5461
"**/.git/**/*" # no embedded Git repos
5562
]
@@ -66,3 +73,6 @@ test-command = "pytest {project}/tests -q"
6673

6774
[tool.cibuildwheel.linux]
6875
archs = ["x86_64", "aarch64"]
76+
77+
[tool.cibuildwheel.windows]
78+
archs = ["AMD64"]

0 commit comments

Comments
 (0)