build littlefs for ci
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user