diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a8acbe9 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file 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