-
Notifications
You must be signed in to change notification settings - Fork 12
59 lines (49 loc) · 1.48 KB
/
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
name: Build Firmware
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
branches: [ master ]
jobs:
build:
strategy:
matrix:
targets: [GENERIC, G12864, DIY_CARD, DIY_FC, NEUTRONRC_SDB]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10.4"
- name: Build modules
run: |
python3 build.py build TARGET ${{ matrix.targets }}
- name: Prepare esp-idf and micropython
run: |
git clone -b v4.2 --recursive https://github.com/espressif/esp-idf.git
git clone https://github.com/micropython/micropython.git micropython
- name: Install modules
run: |
cp -a obj/. micropython/ports/esp32/modules/
- name: Build ESP32 GENERIC v1.19.1
run: |
cd esp-idf
./install.sh
source export.sh
cd ..
cd micropython
git checkout 9b486340da22931cde82872f79e1c34db959548b
git submodule update --init --recursive
make -C mpy-cross
cd ports/esp32
make submodules
make
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: flowshutter_${{ matrix.targets }}_${{ github.run_number }}
path: micropython/ports/esp32/build-GENERIC/firmware.bin