Changes to actions and configuration

This commit is contained in:
Ben Huepeden 2022-10-23 16:47:30 +02:00
parent 3a9f865d98
commit c01c13cc48
4 changed files with 27 additions and 34 deletions

View File

@ -1,23 +1,30 @@
name: PlatformIO
name: PlatformIO CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: PlatformIO Run
uses: karniv00l/platformio-run-action@v1
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
jobs: 6
silent: false
verbose: true
disable-auto-clean: false
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO
run: pio run -e t-echo

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
# general
.pio
include/configuration.h
include/credentials.h
# vscode

View File

@ -1,14 +0,0 @@
/**
* @file configuration.h
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2022-05-28
*
* @copyright Copyright (c) 2022
*
*/
/*** Configuration ***/
#define BME280 // comment out if you have a T-Echo without BME280
#define DEBUG // comment out to remove debug messages from serial bus

View File

@ -20,16 +20,17 @@ monitor_speed = 115200
lib_deps =
zinggjm/GxEPD2@^1.4.5
mikalhart/TinyGPSPlus@^1.0.3
mcci-catena/MCCI LoRaWAN LMIC library@^4.1.1
mcci-catena/MCCI LoRaWAN LMIC library@^4.1.0
adafruit/Adafruit BusIO@^1.11.6
adafruit/Adafruit Unified Sensor@^1.1.5
adafruit/Adafruit BME280 Library@^2.2.2
https://github.com/ElectronicCats/CayenneLPP#1.3.0
bblanchon/ArduinoJson@^6.19.4
lewisxhe/PCF8563_Library@^0.0.1
lewisxhe/PCF8563_Library@^1.0.1
adafruit/Adafruit SPIFlash@^3.10.0
build_flags =
-D ARDUINO_LMIC_PROJECT_CONFIG_H_SUPPRESS
-D LMIC_LORAWAN_SPEC_VERSION=LMIC_LORAWAN_SPEC_VERSION_1_0_2
-D CFG_eu868=1
-D CFG_sx1276_radio=1
-DCFG_DEBUG=0