Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformIO build configurations tweak (resolves universam1/iSpindel#500) #510

Merged
merged 2 commits into from
Jun 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}