Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/publish-sdist-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ env:

CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD: 'cp*'
CIBW_SKIP: 'cp35-* cp36-* cp37-* cp38-* *-musllinux_* *-manylinux_i686'
CIBW_SKIP: 'cp39-* *-musllinux_* *-manylinux_i686 "cp314t-*"'
CIBW_TEST_COMMAND: ( cd {project}/python/tests; python -m unittest -v )
UNIXY_HDF5_VERSION: 1.14.3

jobs:
build_wheels:
Expand All @@ -19,8 +18,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-22.04, macos-13, macos-14]
os: [ubuntu-22.04, macos-14, macos-15-intel]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -62,7 +60,6 @@ jobs:
export STATIC_HDF5=True
export CMAKE_PREFIX_PATH=/opt/hdf5-static/install-x86_64/install/

CIBW_MANYLINUX_X86_64_IMAGE=manylinux2014 python -m cibuildwheel --output-dir dist
CIBW_MANYLINUX_X86_64_IMAGE=manylinux_2_28 python -m cibuildwheel --output-dir dist

- name: Build wheels Mac OS
Expand Down
16 changes: 10 additions & 6 deletions ci/hdf5-build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
set -e -x

: "${UNIXY_HDF5_VERSION:=1.14.3}"
: "${CIBW_ARCHS_MACOS:=$(uname -m)}"

export INPUT=$(cd $(dirname "$1") && pwd -P)/$(basename "$1")
Expand All @@ -10,12 +9,13 @@ export OUTPUT="$INPUT/install-$CIBW_ARCHS_MACOS"

function download_unpack_hdf5 {
pushd "$INPUT"
local name=CMake-hdf5-$UNIXY_HDF5_VERSION.tar.gz
local name=hdf5_1.14.6.tar.gz
if [[ ! -e $name ]]; then
echo "Downloading & unpacking HDF5 ${UNIXY_HDF5_VERSION}"
curl -fsSLO "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${UNIXY_HDF5_VERSION%.*}/hdf5-$UNIXY_HDF5_VERSION/src/$name"
echo "Downloading & unpacking HDF5 ${name}"
curl -fsSLO "https://github.com/HDFGroup/hdf5/archive/refs/tags/${name}"
fi
tar xzf "$name"
mkdir -p "${INPUT}/hdf5"
tar xzf "$name" -C "${INPUT}/hdf5" --strip-components=1
popd
}

Expand Down Expand Up @@ -44,15 +44,19 @@ else
cmake -B "$OUTPUT/build" -G'Unix Makefiles' \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_SHARED_LIBS=OFF \
-DHDF5_ENABLE_NONSTANDARD_FEATURES=OFF \
-DHDF5_ENABLE_NONSTANDARD_FEATURE_FLOAT16=OFF \
-DHDF5_BUILD_STATIC_TOOLS=OFF \
-DHDF5_BUILD_UTILS=OFF \
-DHDF5_BUILD_HL_LIB=OFF \
-DHDF5_BUILD_EXAMPLES=OFF \
-DBUILD_TESTING=OFF \
-DHDF5_BUILD_TOOLS=OFF \
-DHDF5_ENABLE_SZIP_ENCODING=OFF \
-DHDF5_ENABLE_SZIP_SUPPORT=OFF \
-DHDF5_ENABLE_Z_LIB_SUPPORT=OFF \
-DCMAKE_INSTALL_PREFIX="$INSTALL" \
-S "$INPUT/CMake-hdf5-$UNIXY_HDF5_VERSION/hdf5-$UNIXY_HDF5_VERSION"
-S "$INPUT/hdf5"

cmake --build "$OUTPUT/build" -j "$NPROC"
cmake --install "$OUTPUT/build"
Expand Down
Loading