liufang-robot Linux python aarch64 build #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux python aarch64 build | |
run-name: ${{ github.actor }} Linux python aarch64 build | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
linux_python_aarch64_build: | |
runs-on: [self-hosted, Linux, ARM64] | |
container: quay.io/pypa/manylinux2014_aarch64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- run: for PYBIN in /opt/python/*/bin;do "${PYBIN}/pip" install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt; done; | |
- run: /opt/python/cp310-cp310/bin/pip install -i https://mirrors.aliyun.com/pypi/simple/ twine==2.0.0 markdown | |
- name: create-whl-dir | |
run: mkdir -p whl | |
- name: build with python | |
run: for PY in /opt/python/*;do | |
rm -rf build; | |
cmake -S. -Bbuild -DBUILD_TESTING=OFF -DBUILD_PYTHON=ON -DPYTHONPATH=${PY}; | |
cmake --build build; | |
cp build/python/dist/*.whl whl/; | |
done; | |
- name: repair | |
run: for PYWHL in whl/*.whl;do | |
auditwheel repair ${PYWHL}; | |
done; | |
- name: list Pypi | |
run: ls wheelhouse/* |