Skip to content

Commit

Permalink
Trying windows again
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Sep 10, 2024
1 parent 68b7d00 commit 5494f09
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/wheels.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Windows wheels

on: [push, pull_request]

jobs:
build_wheels:
name: Build Windows wheels for 64 bit Python
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
name: Install a Python to use for building
with:
python-version: '3.12'

- uses: msys2/setup-msys2@v2
name: Setup an msys2 environment
with:
msystem: UCRT64
release: false
install: >-
base-devel
m4
bison
make
patch
sed
pacboy: gcc:p
path-type: inherit

- name: Expand the path for Visual Studio 2019
run: |
echo "/c/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x64" >> $GITHUB_PATH
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.20.0
- name: Build gmp and pari
run: |
bash build_pari.sh pari64 gmp64
- name: Build many wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
name: Save the wheels as artifacts
with:
path: ./wheelhouse/*.whl

0 comments on commit 5494f09

Please sign in to comment.