Skip to content

Modify wheels.yml for Windows cibuildwheel build #53

Modify wheels.yml for Windows cibuildwheel build

Modify wheels.yml for Windows cibuildwheel build #53

Workflow file for this run

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: Build wheels
run: cibuildwheel --platform windows
env:
CIBW_BUILD: "cp312-win_amd64"
CIBW_BEFORE_BUILD_WINDOWS: >-
if not exist C:\vcpkg git clone https://github.com/microsoft/vcpkg.git C:\vcpkg &&
C:\vcpkg\bootstrap-vcpkg.bat &&
C:\vcpkg\vcpkg.exe install hdf5
# 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