8000 Speed up CI builds with caching hacks by earlephilhower · Pull Request #5539 · esp8266/Arduino · GitHub
[go: up one dir, main page]

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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hack to ensure core.a looks newer during builds
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).
  • Loading branch information
earlephilhower committed Dec 21, 2018
commit 5dc16dbd02f439095342a6583d282487e84695a2
8 changes: 8 additions & 0 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ function build_sketches()
if [ $testcnt -ne $build_rem ]; then
continue # Not ours to do
fi

# Uber hack warning - setting the cached core.a file to the future to
# ensure it is accepted as unmodified during build process. Problem is
# the git version header is rewritten after each compile, so the
# builder sees it is new and says "rebuild the whole thing!"

if [ -e $cache_dir/core/*.a ]; then touch -t 203712310000 $cache_dir/core/*.a; fi

rm -rf $build_dir/*
local sketchdir=$(dirname $sketch)
local sketchdirname=$(basename $sketchdir)
Expand Down
0