1919 types :
2020 - published
2121
22-
2322jobs :
2423 deploy-linux :
2524
@@ -30,28 +29,43 @@ jobs:
3029 with :
3130 persist-credentials : false
3231 fetch-depth : 0
32+
33+ - name : Setup QEMU
34+ uses : docker/setup-qemu-action@v1
35+
3336 - uses : actions/setup-python@v2
3437 with :
3538 python-version : ' 3.x'
3639 architecture : x64
40+
3741 - name : Install Dependencies
3842 run : |
3943 pip install -U pip
4044 pip install -U wheel setuptools twine
45+
4146 - name : Build Source Package
4247 run : python setup.py sdist
43- - name : Build Manylinux Wheels (py2)
44- uses :
newrelic-forks/[email protected] _x86_64-2021-02-06-3d322a5 45- with :
46- python-versions : ' cp27-cp27m'
48+
49+ - name : Build Manylinux Wheels (Python 2)
50+ 4751 env :
48- LD_LIBRARY_PATH : /opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/usr/local/lib64:/usr/local/lib
49- - name : Build Manylinux Wheels (py3)
50- uses : RalfG/python-wheels-manylinux-build@f7c9db24751e53d2d3c90edc2b04a9ffaa96cd01
51- with :
52- python-versions : ' cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
52+ CIBW_PLATFORM : linux
53+ CIBW_BUILD : cp27-manylinux_x86_64
54+ CIBW_ARCHS : x86_64
55+ CIBW_ENVIRONMENT : " LD_LIBRARY_PATH=/opt/rh/=vtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/usr/local/lib64:/usr/local/lib"
56+ CIBW_TEST_REQUIRES : beautifulsoup4
57+ CIBW_TEST_COMMAND : " pip install -r {package}/tests/base_requirements.txt && export PYTHONPATH={package}/tests && NEW_RELIC_APDEX_T=1000 pytest -vx {package}/tests/agent_features/ && pytest -vx {package}/tests/agent_unittests/"
58+
59+ - name : Build Manylinux Wheels (Python 3)
60+ 5361 env :
54- LD_LIBRARY_PATH : /opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/usr/local/lib64:/usr/local/lib
62+ CIBW_PLATFORM : linux
63+ CIBW_BUILD : cp36-manylinux_aarch64 cp37-manylinux_aarch64 cp38-manylinux_aarch64 cp39-manylinux_aarch64 cp36-manylinux_x86_64 cp37-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64
64+ CIBW_ARCHS : x86_64 aarch64
65+ CIBW_ENVIRONMENT : " LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/usr/local/lib64:/usr/local/lib"
66+ CIBW_TEST_REQUIRES : beautifulsoup4
67+ CIBW_TEST_COMMAND : " pip install -r {package}/tests/base_requirements.txt && export PYTHONPATH={package}/tests && NEW_RELIC_APDEX_T=1000 pytest -vx {package}/tests/agent_features/ && pytest -vx {package}/tests/agent_unittests/"
68+
5569 - name : Upload Package to S3
5670 run : |
5771 tarball="$(python setup.py --fullname).tar.gz"
6478 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
6579 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6680 AWS_DEFAULT_REGION : us-west-2
81+
6782 - name : Upload Package to PyPI
6883 run : |
6984 twine upload --non-interactive dist/*.tar.gz dist/*-manylinux*.whl
0 commit comments