General Motors and Hyundai Motor Co. have agreed to explore partnerships across a range of areas, including vehicle development and production as well as electric and hydrogen powertrain technologies, in a move that underscores mounting pressure on the auto industry to cut costs and achieve massive scale.