Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow to use compile-sketches action #279

Merged
merged 2 commits into from
Feb 15, 2025

Conversation

MallocArray
Copy link
Contributor

Instead of straight CLI, uses the arduino/compile-sketches action.

One immediate benefit is enabling deltas reports
https://github.com/arduino/compile-sketches/tree/v1.1.2/?tab=readme-ov-file#enable-deltas-report

This can show the change in flash and ram compared to the previous run https://github.com/MallocArray/arduino/actions/runs/12954136400/job/36135424360

Compiling sketch: examples/OneOpenAir
Compilation time elapsed: 6s
Change in flash: 147290 (7.49%)
Change in RAM for global variables: 2280 (0.7%)

A future improvement could be to also add https://github.com/arduino/report-size-deltas that can generate a comment on a PR that also shows the delta information.

Instead of straight CLI, uses the arduino/compile-sketches action.

One immediate benefit is enabling deltas reports
https://github.com/arduino/compile-sketches/tree/v1.1.2/?tab=readme-ov-file#enable-deltas-report

This can show the change in flash and ram compared to the previous run
https://github.com/MallocArray/arduino/actions/runs/12954136400/job/36135424360
```
Compiling sketch: examples/OneOpenAir
Compilation time elapsed: 6s
Change in flash: 147290 (7.49%)
Change in RAM for global variables: 2280 (0.7%)
```

A future improvement could be to also add https://github.com/arduino/report-size-deltas that can generate a comment on a PR that also shows the delta information.
@MallocArray
Copy link
Contributor Author

Also removed the additional library installation, as current instructions at the top of the example sketches don't mention needing to install any additional libraries

@MallocArray
Copy link
Contributor Author

Feel free to choose another branch if desired. Develop wasn't the default branch, but looks like new code goes to it first, so I submitted it that way

@MallocArray MallocArray reopened this Feb 12, 2025
@MallocArray
Copy link
Contributor Author

Since this is Approved, can it be completed so the merge finishes?

@MallocArray
Copy link
Contributor Author

Addressed the comments

@samuelbles07 samuelbles07 merged commit 3f5e5ee into airgradienthq:develop Feb 15, 2025
10 checks passed
@samuelbles07
Copy link
Collaborator

Thank you for this @MallocArray !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants