Skip to content

(fix) update h5py version for py3.13 wheel #98

(fix) update h5py version for py3.13 wheel

(fix) update h5py version for py3.13 wheel #98

Workflow file for this run

name: Build
on:
push:
branches:
- "**"
paths:
- "CMakeLists.txt"
- "pyproject.toml"
- "vcpkg.json"
- "README.md"
- "COPYING"
- "src"
- "tests"
- ".github/workflows/build.yml"
# only run on branch push
# ignore changes to docs
# ignore changes to CI files except for this one
jobs:
build_sdist:
if: ${{ github.event_name == 'push' }}
name: Build source distribution
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Build SDist
run: pipx run build --sdist
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: sdist
path: ./dist/*.tar.gz
build_wheels:
name: Build wheels
strategy:
matrix:
os: [windows-2022, macos-14, ubuntu-22.04, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Get CMake
uses: lukka/[email protected]
- name: Setup build tools on macOS
run: brew install automake autoconf libtool
if: ${{ runner.os == 'macos' }}
- name: Set deployment target on macOS
run: echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d '.' -f 1-2)" >> "$GITHUB_ENV"
if: ${{ runner.os == 'macos' }}
- name: Get vcpkg commit ID from manifest
shell: bash
run: |
{
echo 'vcpkg_json<<EOF'
cat vcpkg.json
echo 'EOF'
} >> "$GITHUB_ENV"
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: ${{ fromJson(env.vcpkg_json).builtin-baseline }}
runVcpkgInstall: false
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BEFORE_ALL_LINUX: yum install -y zip
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
merge_artifacts:
name: Merge wheel artifacts
needs: build_wheels
runs-on: ubuntu-latest
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@v4
with:
name: wheels
pattern: wheels-*
delete-merged: true