Canada’s main stock index inched up to an all-time high on Friday, but losses in heavyweight mining shares kept gains in check, while investors assessed domestic and U.S. economic data.