From 3cbec594ac97f82e81fa0f15dfedadfbc4a0afb7 Mon Sep 17 00:00:00 2001 From: StatPan Date: Tue, 21 Apr 2026 22:09:56 +0900 Subject: [PATCH 1/2] ci(release): fix windows wheel target for publish matrix --- .github/workflows/release-pipeline.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index 6661d71..ba2bba7 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -59,7 +59,7 @@ jobs: with: target: ${{ matrix.target }} manylinux: "2_28" - args: --release --out dist -i python3.10 --features vendored-openssl + args: --release --out dist --compatibility pypi -i python3.10 --features vendored-openssl sccache: true before-script-linux: | if command -v dnf >/dev/null 2>&1; then @@ -94,7 +94,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --features vendored-openssl + args: --release --out dist --compatibility pypi --features vendored-openssl sccache: true - uses: actions/upload-artifact@v6 with: @@ -102,12 +102,14 @@ jobs: path: dist windows: - name: Windows wheels (${{ matrix.target }}) + name: Windows wheels (${{ matrix.python_arch }}) runs-on: windows-latest strategy: fail-fast: false matrix: - target: [x64] + include: + - target: x86_64-pc-windows-msvc + python_arch: x64 steps: - uses: actions/checkout@v5 with: @@ -115,18 +117,18 @@ jobs: - uses: actions/setup-python@v6 with: python-version: "3.12" - architecture: ${{ matrix.target }} + architecture: ${{ matrix.python_arch }} - name: Build wheel env: RUSTFLAGS: -D warnings uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --features vendored-openssl + args: --release --out dist --compatibility pypi --features vendored-openssl sccache: true - uses: actions/upload-artifact@v6 with: - name: wheels-windows-${{ matrix.target }} + name: wheels-windows-${{ matrix.python_arch }} path: dist publish: From 48c2d85e9563618368d5f88f884784bdc628e040 Mon Sep 17 00:00:00 2001 From: StatPan Date: Tue, 21 Apr 2026 22:17:00 +0900 Subject: [PATCH 2/2] ci(release): run windows wheel build with native maturin --- .github/workflows/release-pipeline.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index ba2bba7..97cd639 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -108,8 +108,7 @@ jobs: fail-fast: false matrix: include: - - target: x86_64-pc-windows-msvc - python_arch: x64 + - python_arch: x64 steps: - uses: actions/checkout@v5 with: @@ -118,14 +117,13 @@ jobs: with: python-version: "3.12" architecture: ${{ matrix.python_arch }} + - uses: dtolnay/rust-toolchain@stable - name: Build wheel env: RUSTFLAGS: -D warnings - uses: PyO3/maturin-action@v1 - with: - target: ${{ matrix.target }} - args: --release --out dist --compatibility pypi --features vendored-openssl - sccache: true + run: | + python -m pip install --upgrade pip maturin + maturin build --release --out dist --compatibility pypi --features vendored-openssl -i python - uses: actions/upload-artifact@v6 with: name: wheels-windows-${{ matrix.python_arch }}