forked from FeralAI/GP2040
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.58 KB
/
main.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
name: PlatformIO CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
pio platform install https://github.com/Wiz-IO/wizio-pico
- name: Run PlatformIO
run: |
pio run -e osfrd
mv .pio/build/osfrd/APPLICATION.uf2 .pio/build/osfrd/GP2040-OSFRD.uf2
pio run -e crush-counter
mv .pio/build/crush-counter/APPLICATION.uf2 .pio/build/crush-counter/GP2040-CrushCounter.uf2
pio run -e raspberry-pi-pico
mv .pio/build/raspberry-pi-pico/APPLICATION.uf2 .pio/build/raspberry-pi-pico/GP2040-RaspberryPiPico.uf2
pio run -e pico-fighting-board
mv .pio/build/pico-fighting-board/APPLICATION.uf2 .pio/build/pico-fighting-board/GP2040-PicoFightingBoard.uf2
pio run -e dural
mv .pio/build/dural/APPLICATION.uf2 .pio/build/dural/GP2040-DURAL.uf2
pio run -e flatbox-rev-4
mv .pio/build/flatbox-rev-4/APPLICATION.uf2 .pio/build/flatbox-rev-4/GP2040-FlatboxRev4.uf2