Skip to content

Commit

Permalink
Add Windows build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen authored and apcamargo committed Feb 10, 2024
1 parent 376776b commit d1d3651
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,41 @@ on:
workflow_dispatch:

jobs:
macos:
name: Build Windows
runs-on: windows-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
default: true
- name: Setup Python ${{ matrix.python-version }} environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels (x86_64)
uses: messense/maturin-action@v1
with:
target: x86_64
maturin-version: v0.10.6
args: --interpreter python${{ matrix.python-version }} --release --out dist
- name: Install built wheel (x86_64)
run: |
pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
python -c "import pycoverm"
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

macos:
name: Build macOS
runs-on: macos-latest
Expand Down

0 comments on commit d1d3651

Please sign in to comment.