This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
generated from Neutree/c_cpp_project_framework
-
Notifications
You must be signed in to change notification settings - Fork 32
78 lines (73 loc) · 2.1 KB
/
test_build.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: test build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.8, 3.9]
cmake-version: [3.12.4]
steps:
- uses: actions/checkout@master
- name: Get submodules
run: |
git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
wget https://github.com/sipeed/libmaix/releases/download/v0.1.0/toolchain-sunxi-musl-pack-2021-01-09.tar.xz
tar -Jxvf toolchain-sunxi-musl-pack-2021-01-09.tar.xz -C /opt
- name: Test hello-world build
run: |
cd examples/hello-world
python project.py build
python project.py clean
python project.py distclean
cd ../..
- name: Test camera build
run: |
cd examples/camera
python project.py build
python project.py clean
python project.py distclean
cd ../..
- name: Test display build
run: |
cd examples/display
python project.py build
python project.py clean
python project.py distclean
cd ../..
- name: Test nn_resnet build
run: |
cd examples/nn_resnet
python project.py build
python project.py clean
python project.py distclean
cd ../..
- name: Test nn_retinaface build
run: |
cd examples/nn_retinaface
python project.py build
python project.py clean
python project.py distclean
cd ../..
- name: Test nn_yolo_20class build
run: |
cd examples/nn_yolo_20class_mdsc
python project.py build
python project.py clean
python project.py distclean
cd ../..
- name: Test self_learn_classifier build
run: |
cd examples/self_learn_classifier
python project.py build
python project.py clean
python project.py distclean
cd ../..