Skip to content

Commit

Permalink
Add per-file diff details to the github comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
PBrunot committed Apr 28, 2024
1 parent 49b6196 commit f52b5f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sizes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: cp .pio/build/${{ matrix.variant }}/firmware.map ../firmware.map.previous
# Now compares both MAP files with esp_idf_size
- name: Compare MAP files
run: python -m esp_idf_size --format=text --diff=../firmware.map.previous ../firmware.map.latest -o size_report.txt
run: python -m esp_idf_size --format=text --files --diff=../firmware.map.previous ../firmware.map.latest -o size_report.txt
# Upload the size report as an artifact
- name: Upload size report
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion src/SavedConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace fablabbg
{
// Define the static variable
// Define the static variables
std::string SavedConfig::json_buffer;
std::mutex SavedConfig::buffer_mutex;

Expand Down
4 changes: 3 additions & 1 deletion tools/metrics_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def firm_metrics(source, target, env):
+ '"'
)
env.Execute(
'$PYTHONEXE -m esp_idf_size --format=text "' + str(firmware_file) + '"'
'$PYTHONEXE -m esp_idf_size --files --format=text "'
+ str(firmware_file)
+ '"'
)


Expand Down

0 comments on commit f52b5f5

Please sign in to comment.