Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
999f8468
Commit
999f8468
authored
Jul 06, 2021
by
scoder
Committed by
GitHub
Jul 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build and keep wheels in Github Actions. (GH-4267)
parent
559ef749
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
.github/workflows/ci.yml
.github/workflows/ci.yml
+24
-0
.github/workflows/wheel-manylinux.yml
.github/workflows/wheel-manylinux.yml
+43
-0
Tools/ci-run.sh
Tools/ci-run.sh
+5
-0
No files found.
.github/workflows/ci.yml
View file @
999f8468
...
...
@@ -141,6 +141,7 @@ jobs:
# MacOS sub-jobs
# ==============
# (C-only builds are used to create wheels)
-
os
:
macos-10.15
python-version
:
2.7
backend
:
c
...
...
@@ -149,6 +150,22 @@ jobs:
python-version
:
2.7
backend
:
cpp
env
:
{
MACOSX_DEPLOYMENT_TARGET
:
10.14
}
-
os
:
macos-10.15
python-version
:
3.5
backend
:
c
env
:
{
MACOSX_DEPLOYMENT_TARGET
:
10.14
}
-
os
:
macos-10.15
python-version
:
3.6
backend
:
c
env
:
{
MACOSX_DEPLOYMENT_TARGET
:
10.14
}
-
os
:
macos-10.15
python-version
:
3.7
backend
:
c
env
:
{
MACOSX_DEPLOYMENT_TARGET
:
10.14
}
-
os
:
macos-10.15
python-version
:
3.8
backend
:
c
env
:
{
MACOSX_DEPLOYMENT_TARGET
:
10.14
}
-
os
:
macos-10.15
python-version
:
3.9
backend
:
c
...
...
@@ -204,6 +221,13 @@ jobs:
path
:
docs/build/html
if-no-files-found
:
ignore
-
name
:
Upload wheels
uses
:
actions/upload-artifact@v2
with
:
name
:
wheels-${{ runner.os }}
path
:
dist/*.whl
if-no-files-found
:
ignore
pycoverage
:
runs-on
:
ubuntu-18.04
...
...
.github/workflows/wheel-manylinux.yml
0 → 100644
View file @
999f8468
name
:
Linux wheel build
on
:
release
:
types
:
[
created
]
jobs
:
deploy
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
uses
:
actions/setup-python@v1
with
:
python-version
:
3.8
-
name
:
Build manylinux1 x86 Python wheels
uses
:
RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_i686
with
:
python-versions
:
'
cp27-cp27m
cp27-cp27mu
cp35-cp35m
cp36-cp36m
cp37-cp37m
cp38-cp38m
cp39-cp39m'
-
name
:
Build manylinux1 AMD64 Python wheels
uses
:
RalfG/python-wheels-manylinux-build@v0.3.4-manylinux1_x86_64
with
:
python-versions
:
'
cp27-cp27m
cp27-cp27mu
cp35-cp35m
cp36-cp36m
cp37-cp37m
cp38-cp38m
cp39-cp39m'
-
name
:
Build manylinux2014 x86 Python wheels
uses
:
RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_i686
with
:
python-versions
:
'
cp35-cp35m
cp36-cp36m
cp37-cp37m
cp38-cp38m
cp39-cp39m'
-
name
:
Build manylinux2014 AMD64 Python wheels
uses
:
RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_x86_64
with
:
python-versions
:
'
cp35-cp35m
cp36-cp36m
cp37-cp37m
cp38-cp38m
cp39-cp39m'
-
name
:
Upload wheels
uses
:
actions/upload-artifact@v2
with
:
name
:
wheels
path
:
dist/*-manylinux*.whl
if-no-files-found
:
ignore
Tools/ci-run.sh
View file @
999f8468
...
...
@@ -53,8 +53,10 @@ echo "===================="
# Install python requirements
echo
"Installing requirements [python]"
if
[
-z
"
${
PYTHON_VERSION
##2.7
}
"
]
;
then
pip
install
wheel
||
exit
1
pip
install
-r
test-requirements-27.txt
||
exit
1
elif
[
-z
"
${
PYTHON_VERSION
##3.[45]*
}
"
]
;
then
python
-m
pip
install
wheel
||
exit
1
python
-m
pip
install
-r
test-requirements-34.txt
||
exit
1
else
python
-m
pip
install
-U
pip setuptools wheel
||
exit
1
...
...
@@ -97,6 +99,9 @@ if [ "$NO_CYTHON_COMPILE" != "1" -a -n "${PYTHON_VERSION##pypy*}" ]; then
$(
if
[
"
$COVERAGE
"
==
"1"
]
;
then
echo
" --cython-coverage"
;
fi
)
\
$(
python
-c
'import sys; print("-j5" if sys.version_info >= (3,5) else "")'
)
\
||
exit
1
if
[
-z
"
$COVERAGE
"
-a
-z
"
$STACKLESS
"
-a
-z
"
$LIMITED_API
"
-a
-z
"
$EXTRA_CFLAGS
"
-a
-n
"
${
BACKEND
//*cpp*
}
"
]
;
then
python setup.py bdist_wheel
||
exit
1
fi
fi
if
[
"
$TEST_CODE_STYLE
"
==
"1"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment