This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
Update README.md #199
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: maixpy3_build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
steps: | |
- uses: actions/checkout@master | |
- name: Get submodules | |
run: | | |
git submodule update --init --recursive | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install libjpeg-dev gcc libopencv-dev -qq -y | |
wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb | |
sudo apt install ./libffi6_3.2.1-8_amd64.deb -qq -y | |
python3 -m pip install --upgrade pip | |
python3 -m pip install pybind11 | |
wget https://github.com/sipeed/MaixPy3/releases/download/20211101/r329_linux_x86_python3.9_toolchain.zip | |
unzip -q -o r329_linux_x86_python3.9_toolchain.zip -d /opt/ | |
wget https://github.com/sipeed/MaixPy3/releases/download/20210613/v83x_linux_x86_python3.8_toolchain.zip | |
unzip -q -o v83x_linux_x86_python3.8_toolchain.zip -d /opt/ | |
- name: Test desktop build | |
run: | | |
python3 -m pip install . | |
python3 setup.py sdist | |
- name: Test maix_v83x build | |
run: | | |
source /opt/v83x_linux_x86_python3.8_toolchain/envsetup.sh | |
python3.8 setup.py bdist_wheel maix_v83x | |
- name: Test maix_r329 build | |
run: | | |
source /opt/r329_linux_x86_python3.9_toolchain/envsetup.sh | |
python3.9 setup.py bdist_wheel maix_r329 | |
- name: Ready Publish distribution 📦 to PyPI | |
run: | | |
ls -l dist/* |