Skip to content

Commit

Permalink
add windows support (and pypy wheels release)
Browse files Browse the repository at this point in the history
  • Loading branch information
azmyrajab committed Apr 3, 2024
1 parent d96bca4 commit 7060e6c
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,29 @@ jobs:
name: wheels
path: dist

windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

macos:
runs-on: macos-latest
strategy:
Expand Down Expand Up @@ -126,7 +149,7 @@ jobs:
release:
name: Release
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, sdist]
needs: [windows, linux, macos, sdist]
runs-on: ubuntu-latest
environment: pypi
permissions:
Expand Down

0 comments on commit 7060e6c

Please sign in to comment.