-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (51 loc) · 1.57 KB
/
64bit_windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Windows wheels for 64 bit Python
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@v3
- uses: actions/setup-python@v4
name: Install a Python to use for building
with:
python-version: '3.11'
- 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
- name: Build gmp and pari
run: |
bash build_pari.sh pari64 gmp64
- name: Build many wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: AMD64
CIBW_BUILD cp-310* cp-311* cp312-*
CIBW_BEFORE_BUILD: |
pip install cython
CIBW_TEST_COMMAND: python -m cypari.test
- uses: actions/upload-artifact@v3
name: Save the wheels as artifacts
with:
path: ./wheelhouse/*.whl