Repository navigation
59 lines (59 loc) · 1.95 KB
/
Copy pathwheels.yml
File metadata and controls
59 lines (59 loc) · 1.95 KB
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
name: Build Wheels
on: [workflow_dispatch, workflow_call]
jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-26.04, ubuntu-26.04-arm, macos-26-intel, macos-26,
windows-2025]
msystem: [ucrt64]
menv: [ucrt-x86_64]
include:
- os: windows-11-vs2026-arm
msystem: clangarm64
menv: clang-aarch64
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
name: Setup msys2
with:
install: >-
mingw-w64-${{ matrix.menv }}-binutils
mingw-w64-${{ matrix.menv }}-gcc
mingw-w64-${{ matrix.menv }}-tools
diffutils
m4
make
patch
autotools
autoconf-archive
msystem: ${{ matrix.msystem }}
if: ${{ startsWith(matrix.os, 'windows') }}
# Install pkgconfig on Windows from choco rather than from msys and
# avoid using the Strawberry one.
- run: choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
if: ${{ startsWith( matrix.os , 'windows' ) }}
# We have to set this here rather than in the cibuildwheel config
# This is probably something to do with \ vs / in paths...
- run: echo "PKG_CONFIG_PATH=${{ github.workspace }}/.local/lib/pkgconfig" >> $env:GITHUB_ENV
if: ${{ startsWith(matrix.os, 'windows') }}
- name: Build wheels
uses: pypa/cibuildwheel@v4.3.5
- uses: actions/upload-artifact@v7
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/
merge:
runs-on: ubuntu-26.04
needs: build_wheels
steps:
- name: Merge Wheels
uses: actions/upload-artifact/merge@v7
with:
name: python-gmp-wheels
pattern: wheels-*
delete-merged: true