1
- name : Build for ESP8266 and ESP32
2
-
1
+ name : Build for ESP8266 and ESP32
3
2
on :
4
3
workflow_dispatch :
4
+
5
5
pull_request :
6
6
branches : [ master ]
7
7
paths :
8
8
- src/**
9
9
- examples/**
10
-
10
+
11
11
jobs :
12
- build-esp8266-esp32 :
12
+ build :
13
+
13
14
runs-on : ubuntu-latest
14
15
strategy :
15
16
matrix :
@@ -39,77 +40,32 @@ jobs:
39
40
- examples/Health
40
41
- examples/Settings/MultiWiFi
41
42
- examples/AirQualitySensor/AirQualitySensor
42
- steps :
43
- - name : Checkout Repo
44
- uses : actions/checkout@v4
45
-
46
- - name : Cache pip
47
- uses : actions/cache@v3
48
- with :
49
- path : ~/.cache/pip
50
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
51
- restore-keys : ${{ runner.os }}-pip-
52
-
53
- - name : Cache PlatformIO
54
- uses : actions/cache@v3
55
- with :
56
- path : ~/.platformio
57
- key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
58
-
59
- - name : Set up Python
60
- uses : actions/setup-python@v3
61
-
62
- - name : Install PlatformIO
63
- run : |
64
- python -m pip install --upgrade pip
65
- pip install --upgrade platformio
66
-
67
- - name : Install library dependencies
68
- run : |
69
- pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
70
-
71
- - name : Run build test using PlatformIO
72
- run : pio ci --lib="." -b esp12e -b esp32dev
73
- env :
74
- PLATFORMIO_CI_SRC : ${{ matrix.example }}
75
43
76
- build-camera-examples :
77
- runs-on : ubuntu-latest
78
- strategy :
79
- matrix :
80
- example :
81
- - examples/Camera/motion-capture
82
- - examples/Camera/snapshot-camera
83
44
steps :
84
- - name : Checkout Repo
85
- uses : actions/checkout@v4
86
-
87
- - name : Cache pip
88
- uses : actions/cache@v3
89
- with :
90
- path : ~/.cache/pip
91
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
92
- restore-keys : ${{ runner.os }}-pip-
93
-
94
- - name : Cache PlatformIO
95
- uses : actions/cache@v3
96
- with :
97
- path : ~/.platformio
98
- key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
99
-
100
- - name : Set up Python
101
- uses : actions/setup-python@v3
102
-
103
- - name : Install PlatformIO
104
- run : |
105
- python -m pip install --upgrade pip
106
- pip install --upgrade platformio
107
-
108
- - name : Install library dependencies
109
- run : |
110
- pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
111
-
112
- - name : Run build test using PlatformIO
113
- run : pio ci --lib="." -b esp32dev
114
- env :
115
- PLATFORMIO_CI_SRC : ${{ matrix.example }}
45
+
46
+ - name : Step 1 - Checkout Repo
47
+ uses : actions/checkout@v4
48
+ - name : Step 2 - Cache pip
49
+ uses : actions/cache@v3
50
+ with :
51
+ path : ~/.cache/pip
52
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
53
+ restore-keys : ${{ runner.os }}-pip-
54
+ - name : Step 3 - Cache PlatformIO
55
+ uses : actions/cache@v3
56
+ with :
57
+ path : ~/.platformio
58
+ key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
59
+ - name : Step 4 - Set up Python
60
+ uses : actions/setup-python@v3
61
+ - name : Step 5 - Install PlatformIO
62
+ run : |
63
+ python -m pip install --upgrade pip
64
+ pip install --upgrade platformio
65
+ - name : Step 6 - Install library dependencies
66
+ run : |
67
+ pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
68
+ - name : Step 7 - Run build test using PlatformIO
69
+ run : pio ci --lib="." -b esp12e -b esp32dev
70
+ env :
71
+ PLATFORMIO_CI_SRC : ${{ matrix.example }}
0 commit comments