Fix CI Build fail due to missing credentials
This commit is contained in:
parent
6bbcb0c116
commit
d353e4fa62
5 changed files with 20 additions and 8 deletions
4
.github/workflows/PlatformIO.yml
vendored
4
.github/workflows/PlatformIO.yml
vendored
|
@ -31,6 +31,6 @@ jobs:
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio
|
||||||
- name: Build console
|
- name: Build console
|
||||||
run: pio run --project-dir "./modules/console/Firmware"
|
run: pio run -e CI_Build --project-dir "./modules/console/Firmware"
|
||||||
- name: Build control
|
- name: Build control
|
||||||
run: pio run --project-dir "./modules/control/Firmware"
|
run: pio run -e CI_Build --project-dir "./modules/control/Firmware"
|
||||||
|
|
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
|
@ -61,8 +61,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio
|
||||||
pio run --project-dir "./modules/console/Firmware"
|
pio run -e CI_Build --project-dir "./modules/console/Firmware"
|
||||||
pio run --project-dir "./modules/control/Firmware"
|
pio run -e CI_Build --project-dir "./modules/control/Firmware"
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v1
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef DEBUG
|
||||||
|
#include <Credentials/Credentials.h>
|
||||||
|
#endif
|
||||||
|
#ifdef DEBUG
|
||||||
|
#define WIFI_SSID "ssid"
|
||||||
|
#define WIFI_PW "password"
|
||||||
|
#endif
|
|
@ -11,13 +11,18 @@
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = Upload_UART
|
default_envs = Upload_UART
|
||||||
|
|
||||||
[env:Upload_UART]
|
[env]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = az-delivery-devkit-v4
|
board = az-delivery-devkit-v4
|
||||||
framework = arduino
|
framework = arduino
|
||||||
upload_port = COM8
|
|
||||||
monitor_port = COM8
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
erropix/ESP32 AnalogWrite@^0.2
|
erropix/ESP32 AnalogWrite@^0.2
|
||||||
ESP Async WebServer
|
ESP Async WebServer
|
||||||
board_build.partitions = huge_app.csv
|
board_build.partitions = huge_app.csv
|
||||||
|
|
||||||
|
[env:Upload_UART]
|
||||||
|
upload_port = COM8
|
||||||
|
monitor_port = COM8
|
||||||
|
|
||||||
|
[env:CI_Build]
|
||||||
|
build_flags = -D DEBUG=1
|
|
@ -7,7 +7,7 @@
|
||||||
#include <esp_spi_flash.h>
|
#include <esp_spi_flash.h>
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
#include <Credentials/Credentials.h>
|
#include <Credentials/CredentialManager.h>
|
||||||
|
|
||||||
const int STEPS = 5;
|
const int STEPS = 5;
|
||||||
const int WIFI_TIMEOUT = 20;
|
const int WIFI_TIMEOUT = 20;
|
||||||
|
|
Reference in a new issue