Skip to content

Speed up CI builds with caching hacks #5539

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

Merged
merged 16 commits into from
Jan 5, 2019

Conversation

earlephilhower
Copy link
Collaborator

Hopefull give a significant speedup to the Arduino CI process.

Earle F. Philhower, III and others added 2 commits December 21, 2018 14:35
Hopefull give a significant speedup to the Arduino CI process.
@earlephilhower earlephilhower added this to the 2.5.0 milestone Dec 21, 2018
Commented in the code, but buasically the generation of git version
includes on each build causes the cached core.a to be ignored
because that header is newer than the file we just wrote (even though
on any CI run the GIT version is identical).
@earlephilhower earlephilhower reopened this Jan 3, 2019
@earlephilhower earlephilhower changed the title Cache core.a for CI builds WIP - Cache core.a for CI builds Jan 3, 2019
@earlephilhower earlephilhower removed this from the 2.5.0 milestone Jan 3, 2019
@earlephilhower earlephilhower changed the title WIP - Cache core.a for CI builds WIP - Speed up CI builds with caching hacks Jan 3, 2019
@earlephilhower earlephilhower changed the title WIP - Speed up CI builds with caching hacks Speed up CI builds with caching hacks Jan 3, 2019
@earlephilhower
Copy link
Collaborator Author

It now preserves all intermediate .o files in the libraries and core, speeding up the Arduino builds by >50%!

@devyte
Copy link
Collaborator

devyte commented Jan 3, 2019

This is aramaic to me, so @d-a-v : tag, you're it.

@devyte devyte requested a review from d-a-v January 3, 2019 16:00
@earlephilhower
Copy link
Collaborator Author

Amharic? I was going for Coptic.. I've updated the comments to better explain the logic behind the steps for @d-a-v's sanity.

Use suggested SED line instead of head/tail to replace the .ino being built.

Use touch with a delta from now to ensure this script runs until the end
of time_t.
@earlephilhower earlephilhower merged commit 1f13c73 into esp8266:master Jan 5, 2019
@earlephilhower earlephilhower deleted the cachebuild branch January 5, 2019 18:53
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