Skip to content

Commit

Permalink
Implement CI on GitHub Actions (#6)
Browse files Browse the repository at this point in the history
* add secrets.h
* keep *.elf for debugging
  • Loading branch information
ldab authored Mar 17, 2022
1 parent 1fe740a commit 3435f12
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 6 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PlatformIO CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
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
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.pio
.pio/libdeps
.pio/build/esp8266/*
!.pio/build/esp8266/firmware.elf
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
.vscode/extensions.json
.vscode/settings.json

include/secrets.h

#remove the serial monitor log
*.log

Expand Down Expand Up @@ -39,4 +39,5 @@ fp-info-cache
# Exported BOM files
*.xml
PCB/iot_plant_watering_sensor_esp32/iot_plant_watering_sensor_esp32-cache.lib
PCB/iot_plant_watering_sensor_esp32/fp-lib-table
PCB/iot_plant_watering_sensor_esp32/fp-lib-table
.pio/build/project.checksum
Binary file added .pio/build/esp8266/firmware.elf
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Connected electric kiln controller -> esp8266, max31855, thermocouple type K, relay, contactor and energy meter. Including Kiln built plans.

[![GitHub version](https://img.shields.io/github/release/ldab/kiln_controller.svg)](https://github.com/ldab/kiln_controller/releases/latest)
[![Build Status](https://api.travis-ci.com/ldab/kiln_controller.svg)](https://travis-ci.com/github/ldab/kiln_controller)
![Build Status](https://github.com/ldab/esp32_pottery_kiln/actions/workflows/workflow.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/ldab/kiln_controller/blob/master/LICENSE)

[![GitHub last commit](https://img.shields.io/github/last-commit/ldab/kiln_controller.svg?style=social)](https://github.com/ldab/kiln_controller)
[![GitHub last commit](https://img.shields.io/github/last-commit/ldab/esp32_pottery_kiln.svg?style=social)](https://github.com/ldab/esp32_pottery_kiln)

## TODO

Expand Down
18 changes: 18 additions & 0 deletions include/secrets.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const char* s_wifi_ssid = "SSID";
const char* s_wifi_password = "PASSWORD";

const char* s_mqtt_server = "mqtt.flespi.io";
const char* s_mqtt_user =
"igjoijsfiodsjfoijsdoifjsdiofjsdi";
const char* s_mqtt_pass = "";
uint16_t s_mqtt_port = 1883;

#define BLYNK_AUTH_TOKEN "dsfsdfsdfdsf"
#define BLYNK_DEVICE_NAME "MyKisdfsdfln"

// #define BLYNK_AUTH_TOKEN "sdfsdf"

char s_blynk_auth[] = BLYNK_AUTH_TOKEN;

#define PAPERTRAIL_HOST "logs2.papertrailapp.com"
#define PAPERTRAIL_PORT 65464684

0 comments on commit 3435f12

Please sign in to comment.