Skip to content

Commit

Permalink
Rename PIO enviroments
Browse files Browse the repository at this point in the history
  • Loading branch information
foorschtbar committed Oct 6, 2023
1 parent 2345c03 commit 872cb73
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Build, Release & Deploy

on:
[push]
on: [push]

env:
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'testing') }}

jobs:
build-webui:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
repository: 'pixelit-project/WebUI'
repository: "pixelit-project/WebUI"

- name: Use Node.js 💾
uses: actions/setup-node@v3
Expand Down Expand Up @@ -78,7 +77,7 @@ jobs:
pip install --upgrade platformio
- name: Run PlatformIO build on selected platforms 🏗️
run: platformio run -e d1_mini -e ESP8266 -e wemos_d1_mini32 -e nodemcuv2
run: platformio run -e ESP8266_generic -e ESP8266_nodemcuv2 -e ESP32_generic -e ESP32_d1_mini32 -e ESP8266_d1_mini -e ESP32_Ulanzi

- name: Upload build artifacts 💾
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -118,7 +117,7 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
repository: 'pixelit-project/WebUI'
repository: "pixelit-project/WebUI"

- name: Download artifacts 💾
uses: actions/download-artifact@v3
Expand Down
48 changes: 42 additions & 6 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lib_deps =
bakercp/CRC32 @ 2.0.0
adafruit/Adafruit SHT31 Library@^2.2.2

[env:wemos_d1_mini32]
[env:ESP32_d1_mini32]
platform = espressif32
board = wemos_d1_mini32
framework = ${common.framework}
Expand Down Expand Up @@ -71,9 +71,45 @@ lib_deps =
Hash = https://github.com/bbx10/Hash_tng.git
adafruit/Adafruit SHT31 Library@^2.2.2

[env:ESP8266]
[env:ESP32_generic]
platform = espressif32
board = esp32dev
framework = ${common.framework}
board_build.f_cpu = 80000000L
monitor_speed = ${common.monitor_speed}
extra_scripts = ${common.extra_scripts}
upload_speed = ${common.upload_speed}
build_flags =
${common.build_flags}
-DLDR_PIN=A0
-DMATRIX_PIN=27
-DDEFAULT_PIN_SCL="Pin_D1"
-DDEFAULT_PIN_SDA="Pin_D3"
-DDEFAULT_PIN_DFPRX="Pin_D7"
-DDEFAULT_PIN_DFPTX="Pin_D8"
-DDEFAULT_PIN_ONEWIRE="Pin_D1"
-DDEFAULT_MATRIX_TYPE=1
-DDEFAULT_LDR=GL5516
-DVBAT_PIN=0
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
toolchain-xtensa32@~2.80400.0
lib_deps =
${common.lib_deps}
WiFiManager = https://github.com/tzapu/WiFiManager.git#v2.0.15-rc.1
plerup/EspSoftwareSerial@^6.11.4
fastled/FastLED@^3.5.0
adafruit/Adafruit BME680 Library@^2.0.1
adafruit/Adafruit BMP280 Library@^2.6.1
claws/BH1750@^1.2.0
robtillaart/Max44009@^0.5.2
arduino-libraries/ArduinoHttpClient@^0.4.0
Hash = https://github.com/bbx10/Hash_tng.git
adafruit/Adafruit SHT31 Library@^2.2.2

[env:ESP8266_generic]
platform = [email protected]
board = nodemcu
board = esp12e
framework = ${common.framework}
board_build.filesystem = littlefs
monitor_speed = ${common.monitor_speed}
Expand Down Expand Up @@ -102,7 +138,7 @@ lib_deps =
mr-glt/SHA-1 Hash@^1.1.0
adafruit/Adafruit SHT31 Library@^2.2.2

[env:d1_mini]
[env:ESP8266_d1_mini]
platform = [email protected]
monitor_filters = esp8266_exception_decoder
board = d1_mini
Expand Down Expand Up @@ -134,7 +170,7 @@ lib_deps =
mr-glt/SHA-1 Hash@^1.1.0
adafruit/Adafruit SHT31 Library@^2.2.2

[env:nodemcuv2]
[env:ESP8266_nodemcuv2]
platform = [email protected]
board = nodemcuv2
framework = ${common.framework}
Expand Down Expand Up @@ -165,7 +201,7 @@ lib_deps =
mr-glt/SHA-1 Hash@^1.1.0
adafruit/Adafruit SHT31 Library@^2.2.2

[env:Ulanzi]
[env:ESP32_Ulanzi]
platform = espressif32
board = esp32dev
framework = ${common.framework}
Expand Down

0 comments on commit 872cb73

Please sign in to comment.