Skip to content

Commit

Permalink
Merge pull request zivillian#1 from zivillian/gh_actions
Browse files Browse the repository at this point in the history
add ci
  • Loading branch information
zivillian authored Jun 17, 2022
2 parents 4c4afe9 + 73ab780 commit e6acab5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 -e esp32dev
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: image
path: .pio/build/esp32dev/firmware.bin
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ESP32 Modbus RTU/TCP Gateway

The goal is to create a generic firmware for an ESP32 to be used as a gateway for any modbus RTU device.
A generic firmware for an ESP32 to be used as a gateway for any modbus RTU device.

## State

Some things are already working, but it's far from finished. If you have an idea please open an issue - if you can improve anything just create a PR.
It work's for me, but there's plenty of room for improvement. If you have an idea please open an issue - if you can improve anything just create a PR.

0 comments on commit e6acab5

Please sign in to comment.