diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index 222d6e3..7211f7c 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -109,38 +109,39 @@ jobs: name: wheels-musllinux-${{ matrix.platform.target }} path: dist - # We skip windows for now because the symlinks (for `pyi` typing) give "access denied" on windows. - - # windows: - # runs-on: ${{ matrix.platform.runner }} - # strategy: - # matrix: - # platform: - # - runner: windows-latest - # target: x64 - # steps: - # - uses: actions/checkout@v4 - # with: - # submodules: "recursive" - # # There seem to be linking errors on Windows with the uv-provided Python - # # executables, so we use the Python versions provided by github actions - # # for now. - # # Seems to be this question: https://stackoverflow.com/questions/78557803/python-with-rust-cannot-open-input-file-python3-lib - # - uses: actions/setup-python@v5 - # with: - # python-version: 3.13 - # architecture: ${{ matrix.platform.target }} - # - name: Build wheels - # uses: PyO3/maturin-action@v1 - # with: - # target: ${{ matrix.platform.target }} - # args: --release --out dist -i 3.9 -i 3.10 -i 3.11 -i 3.12 -i 3.13 --manifest-path python/Cargo.toml - # sccache: "true" - # - name: Upload wheels - # uses: actions/upload-artifact@v4 - # with: - # name: wheels-windows-${{ matrix.platform.target }} - # path: dist + windows: + runs-on: ${{ matrix.platform.runner }} + strategy: + matrix: + platform: + - runner: windows-latest + target: x64 + steps: + - uses: actions/checkout@v4 + with: + submodules: "recursive" + # There seem to be linking errors on Windows with the uv-provided Python + # executables, so we use the Python versions provided by github actions + # for now. + # Seems to be this question: https://stackoverflow.com/questions/78557803/python-with-rust-cannot-open-input-file-python3-lib + - uses: actions/setup-python@v5 + with: + python-version: 3.13 + architecture: ${{ matrix.platform.target }} + - name: Remove symlink (not supported in Windows wheels) + run: Remove-Item -Path python/python/async_tiff/store -Force + shell: pwsh + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.platform.target }} + args: --release --out dist -i 3.9 -i 3.10 -i 3.11 -i 3.12 -i 3.13 --manifest-path python/Cargo.toml + sccache: "true" + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: wheels-windows-${{ matrix.platform.target }} + path: dist macos: runs-on: ${{ matrix.platform.runner }}