Skip to content

Optimize builds to reduce duplicate dependency checks#8943

Merged
thebentern merged 1 commit into
meshtastic:developfrom
vidplace7:optimize-dep-scans
Dec 12, 2025
Merged

Optimize builds to reduce duplicate dependency checks#8943
thebentern merged 1 commit into
meshtastic:developfrom
vidplace7:optimize-dep-scans

Conversation

@vidplace7

@vidplace7 vidplace7 commented Dec 12, 2025

Copy link
Copy Markdown
Member

The 'mtjson' PlatformIO target will now build all required pieces when they don't exist.

In CI -- this allows us to invoke only pio run -e <board_name> -t mtjson and avoid duplicate dependency scans, which are EXTREMELY heavy.
Decreases esp32 build time by about 60 seconds (adds up fast).

Tested at https://github.com/vidplace7/meshtastic-firmware/actions/runs/20152012877

'mtjson' will now build all required pieces when they don't exist
@vidplace7 vidplace7 added github_actions Pull requests that update GitHub Actions code enhancement New feature or request labels Dec 12, 2025
@thebentern thebentern merged commit bcfe069 into meshtastic:develop Dec 12, 2025
80 of 81 checks passed
@max-arnold

Copy link
Copy Markdown

This change broke the manual build process from CLI (using the devcontainer):

bin/build-esp32.sh heltec-v4
...
Building FS image from 'data' directory to .pio/build/heltec-v4/littlefs-heltec-v4-2.7.17.bcfe06999.bin
sh: 1: mklittlefs: not found
========================================== [FAILED] Took 327.24 seconds ==========================================

Environment    Status    Duration
-------------  --------  ------------
heltec-v4      FAILED    00:05:27.236
===================================== 1 failed, 0 succeeded in 00:05:27.236 =====================================

@fifieldt

Copy link
Copy Markdown
Member

Thanks @max-arnold , do you have time to lodge an issue so we don't lose track of this?

@max-arnold

Copy link
Copy Markdown

Done!

scobert969 pushed a commit to zeropt/meshtastic-firmware that referenced this pull request Dec 22, 2025
'mtjson' will now build all required pieces when they don't exist
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
'mtjson' will now build all required pieces when they don't exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants