From 659c5a5784008c3f1814094286154a8f46cd6617 Mon Sep 17 00:00:00 2001 From: dominikn Date: Thu, 25 Nov 2021 18:17:36 +0100 Subject: [PATCH] added GitHub Actions workflow --- .github/workflows/build.yml | 22 ++++++++++++++++++ .gitignore | 5 +--- README.md | 4 ++-- .../screenshot_esp32_webui.png | Bin .../screenshot_flash_button.png | Bin partitions_custom.csv | 6 ----- platformio.ini | 2 +- 7 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/build.yml rename screenshot_esp32_webui.png => docs/screenshot_esp32_webui.png (100%) rename screenshot_flash_button.png => docs/screenshot_flash_button.png (100%) delete mode 100644 partitions_custom.csv diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0b2b6f2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build firmware + +on: + push: + branches: + - 'master' + +jobs: + build: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Installing platformio + run: pip3 install -U platformio + + - name: Building a firmware + run: | + pio lib install + pio run \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9617f15..6c62f96 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ .pio -.vscode/.browse.c_cpp.db* -.vscode/c_cpp_properties.json -.vscode/launch.json -.vscode/ipch +.vscode src/credentials.h \ No newline at end of file diff --git a/README.md b/README.md index 7c6a15b..08b4d34 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ To find your Husarnet Join Code setup a free account at https://app.husarnet.com ### 4. Upload code to your board Just click this button in VSC + Platformio -![Upload code](screenshot_flash_button.png) +![Upload code](docs/screenshot_flash_button.png) ### 5. Open WebUI @@ -86,4 +86,4 @@ At this stage your ESP32 and your laptop are in the same VLAN network. The best `http://esp32websocket:8000` You should see a web UI to controll your ESP32 now. -![screenshot_esp32_webui](screenshot_esp32_webui.png) +![screenshot_esp32_webui](docs/screenshot_esp32_webui.png) diff --git a/screenshot_esp32_webui.png b/docs/screenshot_esp32_webui.png similarity index 100% rename from screenshot_esp32_webui.png rename to docs/screenshot_esp32_webui.png diff --git a/screenshot_flash_button.png b/docs/screenshot_flash_button.png similarity index 100% rename from screenshot_flash_button.png rename to docs/screenshot_flash_button.png diff --git a/partitions_custom.csv b/partitions_custom.csv deleted file mode 100644 index 5dec3c0..0000000 --- a/partitions_custom.csv +++ /dev/null @@ -1,6 +0,0 @@ -# Name, Type, SubType, Offset, Size, Flags -nvs, data, nvs, 0x9000, 0x5000, -otadata, data, ota, 0xe000, 0x2000, -app0, app, ota_0, 0x10000, 0x180000, -app1, app, ota_1, 0x190000,0x180000, -spiffs, data, spiffs, 0x310000,0xF0000, \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index abb935e..161afa0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -18,7 +18,7 @@ upload_speed = 921600 monitor_filters = esp32_exception_decoder, default -board_build.partitions = partitions_custom.csv +board_build.partitions = min_spiffs.csv board_build.embed_txtfiles = src/index.html