Closed andreineculau closed 2 years ago
takes 273 seconds (august 2021) git fetch homebrew-core on github-actions . even more on other CIs
update: 393 seconds (december 2021)
trying degit in 1de068c02610792d45db1c84572ec2442ea7aa12
initial results show that times have decreased
LINUX ~50% for installing homebrew (brew, core tap and all taps in Brewfile.lock) from 270 down to 140 seconds, shaving off ~2 minutes
MACOS ~75% from 308 down to 77 seconds, shaving off ~4 minutes
A great chunk of the time spent in CI goes to git-cloning homebrew-core. It's a huge repo.
One alternative would be to make use of https://github.com/rokmoln/support-firecloud/blob/master/bin/git-shallow which would shallow clone homebrew-core.
Another would be to use download and unpack the tarball of the commit. This can be done via
ungithttps://github.com/rokmoln/support-firecloud/blob/master/bin/degitNOTE: In the past, the homebrew install script would use
--depth=1
, but that is frowned upon by github (consumes more resources).REF: https://github.com/Homebrew/install/issues/523