-
Notifications
You must be signed in to change notification settings - Fork 7
67 lines (61 loc) · 2.21 KB
/
pixel_pump_dev.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
name: Pixel Pump Dev
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
dev-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/checkout@v2
with:
repository: micropython/micropython
ref: '294baf52b346e400e2255c6c1e82af5b978b18f7' # v1.20 tag
path: "./micropython"
- name: Update apt-get
run: sudo apt-get update
- name: Install packages
run: sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential cmake git python3 -y
- name: Apply HID fix
run: |
cd $GITHUB_WORKSPACE/micropython/
git apply -v --ignore-space-change --ignore-whitespace $GITHUB_WORKSPACE/drivers/rp2_hid/0001-shared-tinyusb-Add-USB-HID-support.patch
- name: Generate Version File
run: |
python3 $GITHUB_WORKSPACE/tools/generateVersionFile.py --output $GITHUB_WORKSPACE/src/pixel_pump/version.py --repo $GITHUB_WORKSPACE
- name: Build mpy-cross
run: |
cd $GITHUB_WORKSPACE/micropython/
make -C mpy-cross
- name: Build ports/rp2 submodules
run: |
cd $GITHUB_WORKSPACE/micropython/
make -C ports/rp2 submodules
- name: Build Empty Pixel Pump firmware
run: |
cd $GITHUB_WORKSPACE/micropython/
make -C ports/rp2 BOARD_DIR=$GITHUB_WORKSPACE/boards/PIXEL_PUMP BOARD_VARIANT=EMPTY
mv $GITHUB_WORKSPACE/micropython/ports/rp2/build-PIXEL_PUMP/firmware.uf2 $GITHUB_WORKSPACE/firmware-blank.uf2
- name: Build Pixel Pump Firmware
run: |
cd $GITHUB_WORKSPACE/micropython/
make -C ports/rp2 BOARD_DIR=$GITHUB_WORKSPACE/boards/PIXEL_PUMP clean
make -C ports/rp2 BOARD_DIR=$GITHUB_WORKSPACE/boards/PIXEL_PUMP
mv $GITHUB_WORKSPACE/micropython/ports/rp2/build-PIXEL_PUMP/firmware.uf2 $GITHUB_WORKSPACE/firmware.uf2
- uses: marvinpinto/action-automatic-releases@latest
name: Release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
draft: true
title: "Pixel Pump Dev Build"
automatic_release_tag: latest
files: |
firmware.uf2
firmware-blank.uf2