Skip to content

Commit 774ff88

Browse files
Use uname -m
1 parent 50697ec commit 774ff88

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/publish-sdist-wheels.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@ jobs:
6262
run: |
6363
# used by setup.py to decide if to set `FindHDF5` to use static hdf5 libraries
6464
export STATIC_HDF5=True
65-
66-
if [[ "$(uname -m)" == "aarch64" ]]; then
67-
export CMAKE_PREFIX_PATH=/opt/hdf5-static/install-aarch64/install/
68-
else
69-
export CMAKE_PREFIX_PATH=/opt/hdf5-static/install-x86_64/install/
70-
fi
65+
export CMAKE_PREFIX_PATH=/opt/hdf5-static/install-$(uname -m)/install/
7166
7267
CIBW_MANYLINUX_X86_64_IMAGE=manylinux2014 python -m cibuildwheel --output-dir dist
7368
CIBW_MANYLINUX_X86_64_IMAGE=manylinux_2_28 python -m cibuildwheel --output-dir dist

0 commit comments

Comments
 (0)