Merge pull request #931 from cyberman54/development

Development
This commit is contained in:
Verkehrsrot 2023-01-21 15:47:13 +01:00 committed by GitHub
commit 6d8543a942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 9 deletions

View File

@ -16,11 +16,14 @@ on:
- 'mkdocs.yml' - 'mkdocs.yml'
- 'LICENSE' - 'LICENSE'
- 'README.md' - 'README.md'
schedule:
# do a build once a week at 06:07Z Sunday
- cron: '7 6 * * 0'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build-for-all-boards:
name: Build code for all ESP32 boards
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -100,6 +103,7 @@ jobs:
run: pio run -e ci run: pio run -e ci
build-windows-macos: build-windows-macos:
name: Build code on platforms Windows and MAC
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -150,6 +154,7 @@ jobs:
run: pio run -e ci run: pio run -e ci
build-s3-usb-stick: build-s3-usb-stick:
name: Build code for ESP32-S3 boards
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -203,7 +208,7 @@ jobs:
run: pio run -e ci run: pio run -e ci
deploy-on-testboard: deploy-on-testboard:
name: Deploy code on ESP32 board TTGO v1.6.1 name: Deploy code on testboard
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -227,12 +232,21 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install --upgrade platformio pip install --upgrade platformio
- name: Copy of necessary files - name: Prepare config files for test
run: | run: |
cp platformio_orig.ini platformio.ini cp platformio_orig.ini platformio.ini
cp src/loraconf_sample.h src/loraconf.h cp src/loraconf_sample.h src/loraconf.h
cp src/ota_sample.conf src/ota.conf cp src/ota_sample.conf src/ota.conf
cp src/paxcounter_orig.conf src/paxcounter.conf cp src/paxcounter_orig.conf src/paxcounter.conf
# apply test credentials to loraconf.h
sed -i "s/APPEUI\[8\] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};/${{ secrets.APPEUI }}/" "src/loraconf.h"
sed -i "s/APPKEY\[16\] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};/${{ secrets.APPKEY }}/" "src/loraconf.h"
# apply test credentials to ota.conf
sed -i "/OTA_WIFI_SSID/c OTA_WIFI_SSID = ${{ secrets.OTA_WIFI_SSID }}" "src/ota.conf"
sed -i "/OTA_WIFI_PASS/c OTA_WIFI_PASS = ${{ secrets.OTA_WIFI_PASS }}" "src/ota.conf"
sed -i "/PAXEXPRESS_USER/c PAXEXPRESS_USER = ${{ secrets.PAXEXPRESS_USER }}" "src/ota.conf"
sed -i "/PAXEXPRESS_REPO/c PAXEXPRESS_REPO = ${{ secrets.PAXEXPRESS_REPO }}" "src/ota.conf"
sed -i "/PAXEXPRESS_API_TOKEN/c PAXEXPRESS_API_TOKEN = ${{ secrets.PAXEXPRESS_API_TOKEN }}" "src/ota.conf"
- name: Build and deploy for testboard - name: Build and deploy for testboard
env: env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}

View File

@ -36,11 +36,8 @@
************************************************************/ ************************************************************/
static const u1_t DEVEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; static const u1_t DEVEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
static const u1_t APPEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
static const u1_t APPEUI[8] = {0x70, 0xB3, 0xD5, 0x00, 0x00, 0x00, 0x00, 0x00}; static const u1_t APPKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
static const u1_t APPKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#endif #endif