Skip to content

Commit

Permalink
Use MVSC to build windows wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed May 24, 2023
1 parent 6bb9bb3 commit 9cc7a30
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
os: [ubuntu-20.04, windows-2019, macos-11]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,13 +28,23 @@ jobs:
python -m pip install --upgrade pip
python -m pip install cibuildwheel==2.11.2
- name: setup MSVC command prompt
uses: ilammy/msvc-dev-cmd@v1

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: cp39-*
CIBW_SKIP: cp39-musllinux* *win32
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_BEFORE_BUILD: rm -rf build
CIBW_BUILD_VERBOSITY: 2

- name: Check that wheels install and load
run: |
pip install numpy
pip install --no-index --find-links=wheelhouse/ chemfiles
python -c "import chemfiles; chemfiles.Frame()"
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 9cc7a30

Please sign in to comment.