Skip to content

Commit 54dc5d6

Browse files
committed
fix wheel build
1 parent cf1813e commit 54dc5d6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
name: Build wheels on ${{ matrix.os }}
1919
runs-on: ${{ matrix.os }}
2020

21+
env:
22+
CIBW_ARCHS_MACOS: ${{ matrix.os == 'macos-14' && 'arm64' || matrix.os == 'macos-13' && 'x86_64' || '' }}
23+
2124
steps:
2225
# Checkout with retry mechanism for reliability
2326
- uses: Wandalen/wretry.action@v3.8.0

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ test-command = "python -c \"import nanogui\""
7777
archs = ["auto64"]
7878
manylinux-x86_64-image = "manylinux2014"
7979
manylinux-aarch64-image = "manylinux2014"
80-
before-build = "yum install -y mesa-libGLU-devel libXi-devel libXcursor-devel libXinerama-devel libXrandr-devel xorg-x11-server-devel libxkbcommon-devel wayland-devel dbus-devel"
80+
before-build = "yum install -y mesa-libGLU-devel libXi-devel libXcursor-devel libXinerama-devel libXrandr-devel xorg-x11-server-devel libxkbcommon-devel wayland-devel dbus-devel kernel-headers"
81+
environment = { CFLAGS="-D_GNU_SOURCE", CXXFLAGS="-D_GNU_SOURCE" }
8182

8283
[tool.cibuildwheel.windows]
8384
archs = ["auto64"]
8485

8586
[tool.cibuildwheel.macos]
86-
archs = ["x86_64", "arm64"]
8787
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0" }

0 commit comments

Comments
 (0)