This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
50 lines (47 loc) · 1.68 KB
/
maixpy3_pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: maixpy3_pypi
on:
release:
types: [published]
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: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true