From c0934c2bcc30aeef28dcda2babbe3f342dc29da9 Mon Sep 17 00:00:00 2001 From: zivillian Date: Fri, 17 Jun 2022 21:11:27 +0200 Subject: [PATCH 1/4] add ci --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e4f6732 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 -e esp32dev \ No newline at end of file From fec1d49be1359ad0427ebd6cbc02a9af815ef388 Mon Sep 17 00:00:00 2001 From: zivillian Date: Sat, 18 Jun 2022 01:03:57 +0200 Subject: [PATCH 2/4] upload artifact --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4f6732..63e5094 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,4 +28,9 @@ jobs: python -m pip install --upgrade pip pip install --upgrade platformio - name: Run PlatformIO - run: pio run -e esp32dev \ No newline at end of file + run: pio run -e esp32dev + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: image + path: .pio/build/esp32dev/firmware.bin \ No newline at end of file From 5cb8fa285330021abce9d989d82a6cfbc32296a2 Mon Sep 17 00:00:00 2001 From: zivillian Date: Sat, 18 Jun 2022 01:05:02 +0200 Subject: [PATCH 3/4] less whitespace --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 63e5094..a8acbe9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: - 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 \ No newline at end of file + uses: actions/upload-artifact@v3 + with: + name: image + path: .pio/build/esp32dev/firmware.bin \ No newline at end of file From 73ab780a83df009d4e34e9c0d2705b128147fe39 Mon Sep 17 00:00:00 2001 From: zivillian Date: Sat, 18 Jun 2022 01:10:55 +0200 Subject: [PATCH 4/4] update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 27688d8..a1976fd 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +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. \ No newline at end of file