Skip to content

Commit

Permalink
PlatformIO build configurations tweak (resolves #500) (#510)
Browse files Browse the repository at this point in the history
* PlatformIO build configurations tweak

* Workflow adjustments

Co-authored-by: Me <[email protected]>
  • Loading branch information
pppedrillo and Me authored Jun 18, 2021
1 parent 7f82a04 commit 0c15104
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
- name: Install library dependencies
run: pio lib -g install 1
- name: Run PlatformIO
run: pio run -e d1_mini
run: pio run -e d1_mini_git
- name: Save firmware
uses: actions/upload-artifact@v2
with:
name: firmware
path: .pio/build/d1_mini/firmware.bin
path: .pio/build/d1_mini_git/firmware.bin

41 changes: 23 additions & 18 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@
; http://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = d1_mini
default_envs = d1_mini_git
lib_dir = pio/lib
src_dir = pio/src

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
monitor_speed = 115200
upload_speed = 115200
build_flags = !python3 git_rev.py
[common_env_data]
lib_deps =
ArduinoJson@>5
ESP Async WebServer
Expand All @@ -30,21 +24,32 @@ lib_deps =
PubSubClient
Blynk
ThingSpeak

[env:d1_mini_git]
platform = espressif8266
board = d1_mini
framework = arduino
monitor_speed = 115200
upload_speed = 115200
build_flags = !python3 git_rev.py
lib_deps =
${common_env_data.lib_deps}

[env:d1_mini_standalone]
platform = espressif8266
board = d1_mini
framework = arduino
monitor_speed = 115200
upload_speed = 115200
lib_deps =
${common_env_data.lib_deps}

[env:d1_mini_stage]
[env:d1_mini_git_stage]
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
board = d1_mini
framework = arduino
monitor_speed = 115200
upload_speed = 921600
build_flags = !python3 git_rev.py
lib_deps =
ArduinoJson@>5
ESP Async WebServer
I2Cdevlib-MPU6050
OneWire
DallasTemperature
RunningMedian
PubSubClient
Blynk
ThingSpeak
${common_env_data.lib_deps}

0 comments on commit 0c15104

Please sign in to comment.