A primary school has built a giant domino chain of cereal boxes in support of a local homeless charity.