Skip to content

Commit b324295

Browse files
authored
Merge pull request #357 from sivar2311/master
Update Build workflows
2 parents f10980d + 9140045 commit b324295

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/build-esp8266-esp32.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
name: Build for ESP8266-ESP32
2-
1+
name: Build Examples for ESP8266 and ESP32
32
on:
3+
workflow_dispatch:
4+
45
pull_request:
56
branches: [ master ]
67
paths:
@@ -31,15 +32,14 @@ jobs:
3132
path: ~/.platformio
3233
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
3334
- name: Step 4 - Set up Python
34-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v3
3536
- name: Step 5 - Install PlatformIO
3637
run: |
3738
python -m pip install --upgrade pip
3839
pip install --upgrade platformio
3940
- name: Step 6 - Install library dependencies
4041
run: |
41-
pio lib --global install "bblanchon/ArduinoJson"
42-
pio lib --global install "links2004/WebSockets"
42+
pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
4343
- name: Step 7 - Run build test using PlatformIO
4444
run: pio ci --lib="." -b esp12e -b esp32dev
4545
env:

.github/workflows/build-rpipicow.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
3131
- name: Step 4 - Install library dependencies
3232
run: |
33-
pio lib --global install "bblanchon/ArduinoJson"
34-
pio lib --global install "links2004/WebSockets"
33+
pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
3534
- name: Step 5 - Run build test using PlatformIO
3635
run: pio ci --lib="." -b rpipicow
3736
env:

0 commit comments

Comments
 (0)