-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.21 KB
/
platformio.yml
File metadata and controls
43 lines (39 loc) · 1.21 KB
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
name: PlatformIO CI
description: Build the project with PlatformIO for every environment
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build Examples
runs-on: ubuntu-latest
strategy:
matrix:
pio-env: [ "Example1_FastStartup", "Example2_Debug", "Example3_WithWifi", "Example4_HandleCommand", "Example5_Preferences", "Example6_Teleplot", "Example7_SPIFFS"]
# Ne pas arrêter la matrice si un environnement échoue
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
# install the libraries before compiling
# otherwise compilation might fail to find the just-installed libraries
# - name: Install platformIO libraries
# run: pio lib install
- name: Build PlatformIO Project
run: pio run --environment ${{ matrix.pio-env }}