-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.8 KB
/
make_mpy.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
name: Compile and Release MicroPython firmware
on:
push:
branches:
- main
jobs:
make_mpy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize MicroPython submodule
run: |
git submodule update --init lib/micropython
cd lib/micropython
git submodule update --init lib/stm32lib lib/mbedtls lib/lwip lib/micropython-lib
- name: Install required dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc make gcc-arm-none-eabi libnewlib-arm-none-eabi
- name: Make MicroPython CC
run: |
make -C lib/micropython/mpy-cross
cd ../../
- name: Build the HEX files
run: |
for board_dir in mcu/*/; do
cd "$board_dir"
make -j$(nproc)
board_name=$(basename "$board_dir")
mkdir -p release
cp build/firmware.hex "release/${board_name}.hex"
make clean
cd ../../
done
for board_dir in mcu/*/; do
cd "$board_dir"
make -j$(nproc) LOWMEM=1
board_name=$(basename "$board_dir")
mkdir -p release
cp build/firmware.hex "release/${board_name}-LOWMEM.hex"
make clean
cd ../../
done
cd ../../
- name: Release version
id: create_release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.event.head_commit.message }}
tag_name: v1.0.0
files: |
mcu/*/release/*.hex
body: |
Release created automatically by merging commit into main. The information about release you can find in [LATEST.md](https://github.com/ukicomputers/Fusion_STM32/blob/main/LATEST.md)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}