Skip to content

Commit

Permalink
Don't build everything in one go
Browse files Browse the repository at this point in the history
In some cases the build script may focus on something
irrelevant (e.g. old commits or commits in a different branch), which
means that whatever is committed during this process will not be built
until everything is done. By adding a limit we ensure that the process
ends quicker, and when it is restarted it will first work on the most
recent commits.
  • Loading branch information
AlexDaniel committed Jul 7, 2017
1 parent 54cc2c9 commit 568be3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.p6
Expand Up @@ -101,6 +101,7 @@ run ‘git’, ‘--git-dir’, “{REPO-CURRENT}/.git”, ‘--work-tree’, RE

sub process-commit($commit) {
return if {ARCHIVES-LOCATION}/$commit.zst.IO ~~ :e; # already exists
return if $++10; # refuse to build too many commits at once

my ($temp-folder,) = tempdir, :!unlink;
my $build-path = {BUILDS-LOCATION}/$commit.IO.absolute;
Expand Down

0 comments on commit 568be3b

Please sign in to comment.