Fix HDF5 linking by adding target_link_libraries for ecell4-core #74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: [push, pull_request] | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| os: [windows-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| # Used to host cibuildwheel | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install cibuildwheel | |
| run: python -m pip install cibuildwheel==3.3.0 | |
| - name: Install vcpkg | |
| run: | | |
| git clone https://github.com/microsoft/vcpkg.git | |
| .\vcpkg\bootstrap-vcpkg.bat | |
| shell: pwsh | |
| - name: Build wheels | |
| run: python -m cibuildwheel --output-dir wheelhouse | |
| env: | |
| MACOSX_DEPLOYMENT_TARGET: "14.0" | |
| CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-*" | |
| CIBW_SKIP: "*-musllinux* *-win32" # Skip 32-bit Windows | |
| CIBW_BEFORE_ALL_WINDOWS: > | |
| C:\vcpkg\bootstrap-vcpkg.bat && | |
| C:\vcpkg\vcpkg install hdf5:x64-windows boost:x64-windows gsl:x64-windows && | |
| C:\vcpkg\vcpkg integrate install | |
| CIBW_ENVIRONMENT_WINDOWS: > | |
| CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" | |
| HDF5_DIR="C:/vcpkg/installed/x64-windows" | |
| GSL_ROOT_DIR="C:/vcpkg/installed/x64-windows" | |
| BOOST_ROOT="C:/vcpkg/installed/x64-windows" | |
| # to supply options, put them in 'env', like: | |
| # env: | |
| # CIBW_SOME_OPTION: value | |
| # ... | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
| path: ./wheelhouse/*.whl |