Skip to content

Commit 79ad524

Browse files
fixing linux includes
1 parent 30792a2 commit 79ad524

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/build_wheels.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,29 @@ jobs:
119119
# output-dir: wheelhouse
120120
# config-file: "{package}/pyproject.toml"
121121

122-
- name: Build Wheels (Linux)
122+
- name: Build Wheels (Linux<ARM>)
123123
uses: pypa/cibuildwheel@v2.23.2
124-
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm'
124+
if: matrix.os == 'ubuntu-24.04-arm'
125+
env:
126+
LIBZIP_INCLUDE_DIR: '/usr/include'
127+
LIBZIP_LIBRARY: '/usr/lib/aarch64-linux-gnu/libzip.so'
128+
CIBW_BUILD_COMMAND: "cmake -B build -S . -DENABLE_MY_FEATURE=ON -DLIBZIP_INCLUDE_DIR=/usr/include -DLIBZIP_LIBRARY=/usr/lib/aarch64-linux-gnu/libzip.so && cmake --build build --config Release"
129+
CIBW_BUILD: ${{ matrix.python_version }}
130+
CIBW_BEFORE_BUILD: "pip install h5py numpy cmake ninja"
131+
# with:
132+
# package-dir: .
133+
# output-dir: wheelhouse
134+
# config-file: "{package}/pyproject.toml"
135+
136+
- name: Build Wheels (Linux<x86_64>)
137+
uses: pypa/cibuildwheel@v2.23.2
138+
if: matrix.os == 'ubuntu-latest'
125139
env:
126-
LIBZIP_INCLUDE_DIR: '/usr/include/zip.h'
140+
LIBZIP_INCLUDE_DIR: '/usr/include'
141+
LIBZIP_LIBRARY: '/usr/lib/x86_64-linux-gnu/libzip.so'
142+
CIBW_BUILD_COMMAND: "cmake -B build -S . -DENABLE_MY_FEATURE=ON -DLIBZIP_INCLUDE_DIR=/usr/include -DLIBZIP_LIBRARY=/usr/lib/x86_64-linux-gnu/libzip.so && cmake --build build --config Release"
127143
CIBW_BUILD: ${{ matrix.python_version }}
144+
CIBW_BEFORE_BUILD: "pip install h5py numpy cmake ninja"
128145
# with:
129146
# package-dir: .
130147
# output-dir: wheelhouse

0 commit comments

Comments
 (0)