-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.49 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
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: main
- name: Checkout MicroPython
uses: actions/checkout@v4
with:
repository: micropython/micropython
ref: refs/tags/v1.21.0
path: micropython
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y cmake gcc-arm-none-eabi \
libnewlib-arm-none-eabi build-essential
- name: Build Cross-compiler
run: |
pushd micropython
make -C mpy-cross
popd
- name: Get MicroPython submodules
run: |
pushd micropython
make -C ports/rp2 BOARD=RPI_PICO_W submodules
popd
- name: Build MicroPython with manifest.
run: |
pushd micropython
cd ports/rp2
make -j 4 BOARD=RPI_PICO_W FROZEN_MANIFEST=../../../../main/manifest.py
popd
- name: Rename UF2
run: |
pushd micropython
mv ports/rp2/build-RPI_PICO_W/firmware.uf2 \
ports/rp2/build-RPI_PICO_W/pico_train_display.uf2
popd
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: pico_train_display
path: micropython/ports/rp2/build-RPI_PICO_W/pico_train_display.uf2
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: micropython/ports/rp2/build-RPI_PICO_W/pico_train_display.uf2