File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 5858 - name : Import test
5959 run : |
6060 python -c "import vpython"
61+
62+ build_aarch64 :
63+
64+ strategy :
65+ fail-fast : false
66+ matrix :
67+ python-version : [cp37-cp37m, cp38-cp38, cp39-cp39]
68+ runs-on : ubuntu-latest
69+ env :
70+ py : /opt/python/${{ matrix.python-version }}/bin/python
71+ img : quay.io/pypa/manylinux2014_aarch64
72+
73+ steps :
74+
75+ - uses : actions/checkout@v1
76+
77+ - name : Set up QEMU
78+ id : qemu
79+ uses : docker/setup-qemu-action@v1
80+
81+ - name : Build and Test
82+ run : |
83+ docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
84+ ${{ env.img }} \
85+ bash -exc '${{ env.py }} -m venv .env && \
86+ source .env/bin/activate && \
87+ echo -e "\e[1;34m Install dependencies \e[0m" && \
88+ python -m pip install --upgrade pip && \
89+ pip install pytest Cython wheel && \
90+ echo -e "\e[1;34m Build wheel \e[0m" && \
91+ python setup.py bdist_wheel && \
92+ echo -e "\e[1;34m Install vpython \e[0m" && \
93+ pip install . && \
94+ echo -e "\e[1;34m Run tests \e[0m" && \
95+ pytest vpython && \
96+ echo -e "\e[1;34m Import test \e[0m" && \
97+ python -c "import vpython" && \
98+ deactivate'
Original file line number Diff line number Diff line change 6666 run : |
6767 twine upload dist/vpython-*-manylinux*.whl
6868
69+ linux_aarch64_wheels :
70+ runs-on : ubuntu-latest
71+ steps :
72+ - uses : actions/checkout@v1
73+ - name : Set up Python
74+ uses : actions/setup-python@v1
75+ with :
76+ python-version : 3.8
77+ - name : Set up QEMU
78+ id : qemu
79+ uses : docker/setup-qemu-action@v1
80+ - name : Install dependencies
81+ run : |
82+ python -m pip install --upgrade pip
83+ pip install twine
84+ - name : Python wheels manylinux build
85+ uses : RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_aarch64
86+ with :
87+ python-versions : ' cp36-cp36m cp37-cp37m cp38-cp38'
88+ build-requirements : ' setuptools cython'
89+ - name : Build and publish wheel
90+ env :
91+ TWINE_USERNAME : __token__
92+ TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_TOKEN }}
93+ run : |
94+ twine upload dist/vpython-*-manylinux*.whl
95+
6996 sdist :
7097 runs-on : ubuntu-latest
7198 steps :
You can’t perform that action at this time.
0 commit comments