Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefb93ba

Browse files
authored
Merge pull request#18233 from QuLogic/fix-ci-trigger
Fix cibuildwheel trigger condition.
2 parents627dd18 +baba803 commitefb93ba

File tree

1 file changed

+36
-5
lines changed

1 file changed

+36
-5
lines changed

‎.github/workflows/cibuildwheel.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name:Build CI wheels
22

3-
on:[push, tags]
3+
on:
4+
push:
5+
branches:
6+
-master
7+
-v[0-9]+.[0-9]+.x
8+
tags:
9+
-v*
410

511
jobs:
612
build_wheels:
@@ -12,6 +18,8 @@ jobs:
1218

1319
steps:
1420
-uses:actions/checkout@v2
21+
with:
22+
fetch-depth:0
1523

1624
-uses:actions/setup-python@v2
1725
name:Install Python
@@ -22,17 +30,40 @@ jobs:
2230
run:|
2331
python -m pip install cibuildwheel==1.5.5
2432
25-
-name:Build wheels
33+
-name:Build wheels for CPython
2634
run:|
27-
python -m cibuildwheel --output-dirwheelhouse
35+
python -m cibuildwheel --output-dirdist
2836
env:
2937
CIBW_BUILD:"cp3?-*"
3038
CIBW_SKIP:"cp35-* cp36-*"
3139
CIBW_MANYLINUX_X86_64_IMAGE:manylinux1
3240
CIBW_MANYLINUX_I686_IMAGE:manylinux1
33-
CIBW_MANYLINUX_PYPY_X86_64_IMAGE:manylinux1
41+
CIBW_BEFORE_BUILD:pip install numpy==1.15
42+
43+
-name:Build wheels for CPython 3.6
44+
run:|
45+
python -m cibuildwheel --output-dir dist
46+
env:
47+
CIBW_BUILD:"cp36-*"
48+
CIBW_MANYLINUX_X86_64_IMAGE:manylinux1
49+
CIBW_MANYLINUX_I686_IMAGE:manylinux1
50+
CIBW_BEFORE_BUILD:pip install numpy==1.15
51+
if:>
52+
startsWith(github.ref, 'refs/heads/v3.3') ||
53+
startsWith(github.ref, 'refs/tags/v3.3')
54+
55+
-name:Build wheels for PyPy
56+
run:|
57+
python -m cibuildwheel --output-dir dist
58+
env:
59+
CIBW_BUILD:"pp3?-*"
60+
CIBW_BEFORE_BUILD:pip install numpy==1.15
61+
if:>
62+
runner.os != 'Windows' && (
63+
startsWith(github.ref, 'refs/heads/v3.3') ||
64+
startsWith(github.ref, 'refs/tags/v3.3') )
3465
3566
-uses:actions/upload-artifact@v2
3667
with:
3768
name:wheels
38-
path:./wheelhouse/*.whl
69+
path:./dist/*.whl

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp