Skip to content

Commit 04df674

Browse files
committed
Only build a single wheel per OS on PRs
1 parent cb062f1 commit 04df674

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/python-wheels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
types:
1212
- published
1313

14+
env:
15+
PY_VERS_FOR_PRS: "cp312-*"
16+
PY_VERS_FULL: "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
17+
1418
jobs:
1519
build_wheels_cloud:
1620
name: Build wheels on ${{ matrix.os }}
@@ -21,31 +25,27 @@ jobs:
2125
include:
2226
- os: ubuntu-24.04
2327
arch: x86_64
24-
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*
2528
before-all: yum groupinstall -y "Development Tools" && dnf -y install ninja-build pkgconf openssl-devel zlib-devel bzip2-devel xz-devel
2629
extra-env: ""
2730
mdt: ""
2831
- os: ubuntu-24.04-arm
2932
arch: aarch64
30-
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*
3133
before-all: yum groupinstall -y "Development Tools" && dnf -y install ninja-build pkgconf openssl-devel zlib-devel bzip2-devel xz-devel
3234
extra-env: ""
3335
mdt: ""
3436
- os: macos-15-intel
3537
arch: x86_64
36-
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*
3738
before-all: brew install pkg-config automake autoconf autoconf-archive libtool ninja openssl zlib bzip2 xz
3839
extra-env: CC=clang CXX=clang++
3940
mdt: 11
4041
- os: macos-15
4142
arch: arm64
42-
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*
4343
before-all: brew install pkg-config automake autoconf autoconf-archive libtool ninja openssl zlib bzip2 xz
4444
extra-env: CC=clang CXX=clang++
4545
mdt: 11
4646

4747
env:
48-
CIBW_BUILD: ${{ matrix.py-vers }}
48+
CIBW_BUILD: ${{ github.event_name == 'pull_request' && env.PY_VERS_FOR_PRS || env.PY_VERS_FULL }}
4949
CIBW_SKIP: cp3*-musllinux_*
5050
CIBW_ARCHS: ${{ matrix.arch }}
5151
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28

0 commit comments

Comments
 (0)