diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7de72ac..3dfd54a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,22 +16,28 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: "3.11" - name: Install PlatformIO Core run: pip install --upgrade platformio - - name: Build only esp32thing_CI - run: pio run -e esp32thing_CI + - name: Build firmware and filesystem + run: | + pio run -e esp32thing_CI + pio run -e esp32thing_CI -t buildfs - - name: Rename firmware - run: cp .pio/build/esp32thing_CI/firmware.bin firmware.bin + - name: Rename firmware and filesystem images + run: | + cp .pio/build/esp32thing_CI/firmware.bin firmware.bin + cp .pio/build/esp32thing_CI/littlefs.bin littlefs.bin - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: name: "esp32thing Firmware ${{ github.ref_name }}" tag_name: "${{ github.ref_name }}" - files: firmware.bin + files: | + firmware.bin + littlefs.bin env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/platformio.ini b/platformio.ini index 26ffb0a..21710fc 100644 --- a/platformio.ini +++ b/platformio.ini @@ -80,6 +80,9 @@ build_flags = -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DBATTERY_PIN=36 +board_upload.flash_size = 16MB +board_build.partitions = default_16MB.csv +targets = uploadfs lib_deps = bblanchon/ArduinoJson@^7.4.1 esp32async/ESPAsyncWebServer@^3.7.7