Fix CI Build fail due to missing credentials

This commit is contained in:
GHOSCHT 2022-04-10 18:12:58 +02:00
parent 6bbcb0c116
commit d353e4fa62
No known key found for this signature in database
GPG key ID: A35BD466B8871994
5 changed files with 20 additions and 8 deletions

View file

@ -31,6 +31,6 @@ jobs:
python -m pip install --upgrade pip
pip install --upgrade platformio
- 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
run: pio run --project-dir "./modules/control/Firmware"
run: pio run -e CI_Build --project-dir "./modules/control/Firmware"

View file

@ -61,8 +61,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
pio run --project-dir "./modules/console/Firmware"
pio run --project-dir "./modules/control/Firmware"
pio run -e CI_Build --project-dir "./modules/console/Firmware"
pio run -e CI_Build --project-dir "./modules/control/Firmware"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

View file

@ -0,0 +1,7 @@
#ifndef DEBUG
#include <Credentials/Credentials.h>
#endif
#ifdef DEBUG
#define WIFI_SSID "ssid"
#define WIFI_PW "password"
#endif

View file

@ -11,13 +11,18 @@
[platformio]
default_envs = Upload_UART
[env:Upload_UART]
[env]
platform = espressif32
board = az-delivery-devkit-v4
framework = arduino
upload_port = COM8
monitor_port = COM8
lib_deps =
erropix/ESP32 AnalogWrite@^0.2
ESP Async WebServer
board_build.partitions = huge_app.csv
[env:Upload_UART]
upload_port = COM8
monitor_port = COM8
[env:CI_Build]
build_flags = -D DEBUG=1

View file

@ -7,7 +7,7 @@
#include <esp_spi_flash.h>
#include <WiFi.h>
#include <ESPAsyncWebServer.h>
#include <Credentials/Credentials.h>
#include <Credentials/CredentialManager.h>
const int STEPS = 5;
const int WIFI_TIMEOUT = 20;