mirror of https://github.com/lumapu/ahoy.git
7 changed files with 112 additions and 12 deletions
@ -0,0 +1,58 @@ |
|||||
|
name: Ahoy Dev-Build for ESP8266/ESP32 |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
branches: development* |
||||
|
paths-ignore: |
||||
|
- '**.md' # Do no build on *.md changes |
||||
|
jobs: |
||||
|
build: |
||||
|
runs-on: ubuntu-latest |
||||
|
|
||||
|
steps: |
||||
|
- uses: actions/checkout@v3 |
||||
|
with: |
||||
|
ref: development02 |
||||
|
- uses: benjlevesque/short-sha@v1.2 |
||||
|
id: short-sha |
||||
|
with: |
||||
|
length: 7 |
||||
|
- name: cache-pip |
||||
|
uses: actions/cache@v3 |
||||
|
with: |
||||
|
path: ~/.cache/pip |
||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} |
||||
|
restore-keys: | |
||||
|
${{ runner.os }}-pip- |
||||
|
- name: cache-platformio |
||||
|
uses: actions/cache@v3 |
||||
|
with: |
||||
|
path: ~/.platformio |
||||
|
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} |
||||
|
- name: setup-python |
||||
|
uses: actions/setup-python@v3 |
||||
|
- name: install-platformio |
||||
|
run: | |
||||
|
python -m pip install --upgrade pip |
||||
|
pip install --upgrade platformio |
||||
|
- name: update-html |
||||
|
working-directory: tools/esp8266/html |
||||
|
run: python convert.py |
||||
|
- name: Run PlatformIO |
||||
|
run: pio run -d tools/esp8266 --environment esp8266-release --environment esp32-wroom32-release |
||||
|
- name: rename-binary-files |
||||
|
id: rename-binary-files |
||||
|
working-directory: tools/esp8266/scripts |
||||
|
run: python getVersion.py |
||||
|
- name: set-version |
||||
|
uses: cschleiden/replace-tokens@v1 |
||||
|
with: |
||||
|
files: tools/esp8266/User_Manual.md |
||||
|
env: |
||||
|
VERSION: ${{ steps.rename-binary-files.outputs.name }} |
||||
|
- name: create-artifact |
||||
|
run: zip --junk-paths ${{ steps.rename-binary-files.outputs.name }}.zip tools/esp8266/.pio/build/out/* tools/esp8266/User_Manual.md |
||||
|
- uses: actions/upload-artifact@v3 |
||||
|
with: |
||||
|
name: ${{ steps.rename-binary-files.outputs.name }}_dev_build |
||||
|
path: ./${{ steps.rename-binary-files.outputs.name }}.zip |
@ -0,0 +1,30 @@ |
|||||
|
//-----------------------------------------------------------------------------
|
||||
|
// 2022 Ahoy, https://www.mikrocontroller.net/topic/525778
|
||||
|
// Creative Commons - http://creativecommons.org/licenses/by-nc-sa/3.0/de/
|
||||
|
//-----------------------------------------------------------------------------
|
||||
|
|
||||
|
#ifndef __CONFIG_OVERRIDE_H__ |
||||
|
#define __CONFIG_OVERRIDE_H__ |
||||
|
|
||||
|
// override fallback WiFi info
|
||||
|
|
||||
|
// each ovveride must be preceeded with an #undef statement
|
||||
|
#undef FB_WIFI_SSID |
||||
|
#define FB_WIFI_SSID "MY_SSID" |
||||
|
|
||||
|
// each ovveride must be preceeded with an #undef statement
|
||||
|
#undef FB_WIFI_PWD |
||||
|
#define FB_WIFI_PWD "MY_WIFI_KEY" |
||||
|
|
||||
|
// ESP32 default pinout
|
||||
|
#undef DEF_RF24_CS_PIN |
||||
|
#define DEF_RF24_CS_PIN 5 |
||||
|
#undef DEF_RF24_CE_PIN |
||||
|
#define DEF_RF24_CE_PIN 4 |
||||
|
#undef DEF_RF24_IRQ_PIN |
||||
|
#define DEF_RF24_IRQ_PIN 16 |
||||
|
|
||||
|
#undef DTU_RADIO_ID |
||||
|
#define DTU_RADIO_ID ((uint64_t)0x1234567802ULL) |
||||
|
|
||||
|
#endif /*__CONFIG_OVERRIDE_H__*/ |
Loading…
Reference in new issue