This action parses compilation result from Arduino CLI and extracts program and ram memory usage.
Required Log from arduino-cli compile
Treshold for program memory bytes. Its exceeding will be indicated by progmem-bytes-excedded='1'
Treshold for program memory percentage. Its exceeding will be indicated by progmem-percentage-excedded='1'
Treshold for RAM bytes. Its exceeding will be indicated by ram-bytes-excedded='1'
Treshold for RAM percentage. Its exceeding will be indicated by ram-percentage-excedded='1'
Treshold for remained RAM. Its exceeding (going below) will be indicated by ram-remained-excedded='1'
Number of program memory bytes as reported by arduino-cli.
Value '1' indicates that progmem-bytes-treshold has been exceeded.
Percentage of program memory used as reported by arduino-cli.
Value '1' indicates that progmem-percentage-treshold has been exceeded.
Total program memory used as reported by arduino-cli.
Number of dynamic memory bytes as reported by arduino-cli.
Value '1' indicates that ram-bytes-treshold has been exceeded.
Percentage of dynamic memory used as reported by arduino-cli.
Value '1' indicates that ram-percentage-treshold has been exceeded.
Bytes of remained dynamic memory as reported by arduino-cli.
Value '1' indicates that ram-remained-treshold has been exceeded.
Total dynamic memory used as reported by arduino-cli.
uses: rafw87/arduino-cli-compile-parser@v1
with:
compile-log: ${{ steps.compile.outputs.log }}
progmem-percentage-treshold: "95"
ram-percentage-treshold: "75"