Make github actions use cache from master branch
This PR allows the first build step to use the latest base branch build as a cache for any files that are not modified by a PR. This decreases the build-time of the Build Erlang/OTP (64-bit) step from ~25 minutes to ~10 minutes if the PR only contains a single Erlang source file change. Making this step faster is important as it is the step that all other CI steps depend upon.
There are a couple of heuristics that try to make sure that the cache is not used when it should not be, see restore-from-prebuilt.sh for more details on those.
While at it, I also fixed some small bugs and refactored the secondary and tertiary bootstrap a bit to make it easier to understand.
CT Test Results
8 files 251 suites 3h 18m 46s :stopwatch: 3 447 tests 3 230 :heavy_check_mark: 214 :zzz: 3 :x: 4 271 runs 3 973 :heavy_check_mark: 296 :zzz: 2 :x:
For more details on these failures, see this check.
Results for commit 9dd63d42.
:recycle: This comment has been updated with latest results.
To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.
See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.
Artifacts
// Erlang/OTP Github Action Bot