Skip to content

Commit 53c8ae1

Browse files
committed
workflow
1 parent 77fef49 commit 53c8ae1

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Firmware
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
20+
- name: Install PlatformIO
21+
run: pip install platformio
22+
23+
- name: Build firmware
24+
run: pio run -e ESP32-S3
25+
26+
- name: Build filesystem
27+
run: pio run -e ESP32-S3 -t buildfs
28+
29+
- name: Rename output files
30+
run: |
31+
mkdir output
32+
cp .pio/build/*/firmware.bin output/firmware.bin
33+
cp .pio/build/*/littlefs.bin output/filesystem.bin
34+
35+
- name: Upload artifacts
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: built-binaries
39+
path: output/

0 commit comments

Comments
 (0)