Skip to content

Commit 8c25f5b

Browse files
committed
[CI] build wheels macOS and Windows
1 parent b3df08a commit 8c25f5b

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

.github/workflows/wheel.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ jobs:
209209
# will use its default cross-compilation settings for Windows on ARM64.
210210
# For macOS, we build universal wheels that work on both Intel and ARM macs.
211211
build-macos-windows:
212-
if: false
213212
name: Build wheels for ${{ matrix.os }}
214213
needs: [build-sdist]
215214
runs-on: ${{ matrix.os }}
216215
strategy:
217216
matrix:
218217
os: [macos-latest, windows-latest]
218+
fail-fast: false
219219
steps:
220220
- name: Checkout
221221
uses: actions/checkout@v4

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ environment = { PY_BUILD_CMAKE_VERBOSE = "1" }
113113
test-command = "pytest {package}/python/test"
114114
test-extras = ["test"]
115115

116+
[tool.cibuildwheel.config-settings]
117+
--local = "scripts/ci/py-build-cmake.toml"
118+
116119
[tool.cibuildwheel.macos]
117120
archs = ["universal2"]
118121
before-build = [

scripts/ci/pre-build-macos.py

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
print(profile)
7171

7272
opts = dict(shell=True, check=True)
73+
if not Path("recipes").exists():
74+
run(f"git clone https://github.com/tttapa/conan-recipes recipes", **opts)
75+
run(f"conan remote add tttapa-conan-recipes recipes --force", **opts)
7376
for c in ("Debug", "Release"):
7477
run(
7578
"conan install . -pr:h ./cibw.profile --build=missing -s build_type=" + c,

scripts/ci/pre-build-windows.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@
7171
print(profile)
7272

7373
opts = dict(shell=True, check=True)
74+
if not Path("recipes").exists():
75+
run(f"git clone https://github.com/tttapa/conan-recipes recipes", **opts)
76+
run(f"conan remote add tttapa-conan-recipes recipes --force", **opts)
7477
for c in ("RelWithDebInfo", "Release"):
7578
run(
76-
"conan install . -pr:h ./cibw.profile --build=missing -s build_type=Release",
79+
"conan install . -pr:h ./cibw.profile --build=missing -s build_type=" + c,
7780
**opts,
7881
)

scripts/ci/py-build-cmake.toml

+2
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO = "/INCREMENTAL:NO /DEBUG:FULL /OPT:REF
2828
ALPAQA_PYTHON_DEBUG_CONFIG = "RelWithDebInfo"
2929
[windows.cmake.10]
3030
install_config = "RelWithDebInfo"
31+
preset = "conan-python-relwithdebinfo"
3132
build_presets = "conan-python-relwithdebinfo"
33+
build_path="build/python-relwithdebinfo"

0 commit comments

Comments
 (0)