Skip to content

Commit e6acab5

Browse files
authored
Merge pull request #1 from zivillian/gh_actions
add ci
2 parents 4c4afe9 + 73ab780 commit e6acab5

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PlatformIO CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Cache pip
13+
uses: actions/cache@v2
14+
with:
15+
path: ~/.cache/pip
16+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
17+
restore-keys: |
18+
${{ runner.os }}-pip-
19+
- name: Cache PlatformIO
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.platformio
23+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
24+
- name: Set up Python
25+
uses: actions/setup-python@v2
26+
- name: Install PlatformIO
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install --upgrade platformio
30+
- name: Run PlatformIO
31+
run: pio run -e esp32dev
32+
- name: Upload artifacts
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: image
36+
path: .pio/build/esp32dev/firmware.bin

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ESP32 Modbus RTU/TCP Gateway
22

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

55
## State
66

7-
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.
7+
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 commit comments

Comments
 (0)