-
Notifications
You must be signed in to change notification settings - Fork 88
66 lines (55 loc) · 1.83 KB
/
build_unix.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
name: UNIX
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
on:
push:
pull_request:
paths-ignore:
- 'examples/**'
- 'README.md'
- 'ci/*esp32*.sh'
- '.github/workflows/build_esp32.yml'
jobs:
tensorflow_micropython_unix_build:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Pillow & Wave
run: |
pip install Pillow
pip3 install Wave
- name: Checkout repository
uses: actions/checkout@v2
- name: Prepare to Build Tensorflow Micropython Firmware for UNIX
run: |
git submodule init
git submodule update --recursive
- name: Setup Build for Tensorflow
run: |
echo "Regenerating microlite/tfm directory"
rm -rf ./micropython-modules/microlite/tflm
cd ./tensorflow
../micropython-modules/microlite/prepare-tflm-unix.sh
- name: Setup micropython modules
run: |
cd ./micropython-modules
ln -s ../micropython-ulab/code ulab
- name: Build micropython cross compiler
run: |
cd ./micropython
echo "make -C mpy-cross V=1 clean all"
make -C mpy-cross V=1 clean all
- name: Prepare to Build Tensorflow Micropython Firmware for unix
run: |
cd micropython/ports/unix
make submodules
make deplibs
make VARIANT_DIR=../../../boards/unix/microlite-variant VARIANT=microlite
- name: Archive Unix MICROLITE micropython interpreter
uses: actions/upload-artifact@v4
with:
name: microlite-unix-micropython
path: |
micropython/ports/unix/micropython