-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (34 loc) · 897 Bytes
/
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
name: Platform IO CI
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Generate image files
run: |
chmod +x ./generate_images.sh
./generate_images.sh
shell: bash
- name: Install PlatformIO Core
run: python -m pip install platformio
- name: Build firmware
run: platformio run
- name: Archive firmwares
uses: actions/upload-artifact@v4
with:
name: firmwares.zip
path: .pio/build/*/*.bin