We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8eaca73 + c6f8c4a commit 8036985Copy full SHA for 8036985
1 file changed
.github/workflows/build.yml
@@ -0,0 +1,32 @@
1
+name: build
2
+
3
+on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
8
+jobs:
9
+ build:
10
+ name: build ${{ matrix.env }}
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ # Representative env per chip family (classic ESP32 / S3 / C3)
16
+ env: [esp32-2432s028, esp32-s3-devkit, esp32-c3-supermini]
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: '3.11'
22
+ cache: pip
23
+ - name: Cache PlatformIO
24
+ uses: actions/cache@v4
25
26
+ path: ~/.platformio
27
+ key: pio-${{ runner.os }}-${{ hashFiles('platformio.ini') }}
28
+ restore-keys: pio-${{ runner.os }}-
29
+ - name: Install PlatformIO
30
+ run: pip install platformio
31
+ - name: Build ${{ matrix.env }}
32
+ run: pio run -e ${{ matrix.env }}
0 commit comments