Skip to content

Commit

Permalink
Windows release #9
Browse files Browse the repository at this point in the history
  • Loading branch information
ypo committed Jul 15, 2023
1 parent 61fc0ee commit babef90
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,42 @@ jobs:
name: wheels
path: dist

windows:
runs-on: windows-latest
name: windows (${{ matrix.platform.target }})
strategy:
matrix:
platform:
- target: x64
interpreter: 3.7 3.8 3.9 3.10 3.11 pypy3.8 pypy3.9
- target: x86
interpreter: 3.7 3.8 3.9 3.10 3.11
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: ${{ matrix.platform.target }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --all-features --release --out dist -i ${{ matrix.platform.interpreter }}
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

release:
name: Release
runs-on: ubuntu-latest
environment: production
# if: "startsWith(github.ref, 'refs/tags/')"
needs: [ linux ]
needs: [ linux, windows ]
steps:
- name: Download wheels
uses: actions/download-artifact@v3
Expand Down

0 comments on commit babef90

Please sign in to comment.