CHICAGO — The White Sox tied a team record with seven home runs, but it wasn’t enough as Edwin Encarnacion drove in four runs, Devon Travis homered and the Toronto Blue Jays held on to beat Chicago 10-8 on Saturday.

All seven homers were solo shots. Brett Lawrie became the first White Sox player since Ron Santo in 1974 to hit inside-the-park and over-the-wall homers in the same game, and Chicago hit three straight home runs in the second inning.

Dioner Navarro, J.B. Shuck, Tim Anderson, Alex Avila and Adam Eaton all went deep for the White Sox, who matched the club record set at the Kansas City Athletics on April 23, 1955.

ORIOLES SWEEP RAYS: Matt Wieters hit two homers, and Baltimore rallied from a four-run deficit to beat Tampa Bay 8-6 for a doubleheader sweep at home that extended the Rays’ losing streak to 10 games.

Adam Jones and Chris Davis also homered for the AL East-leading Orioles, who trailed 4-0 in the third inning and 6-3 in the fifth.

In the opener, Kevin Gausman allowed four hits in 72/3 innings to earn his first win of the season and help Baltimore to a 5-0 victory.

YANKEES 2, TWINS 1: Starlin Castro drove home the tiebreaking run in the eighth with a sharp one-hopper and scored an error on shortstop Eduardo Escobar as New York edged the visiting Twins with more dominant pitching from the back end of its bullpen.

Dellin Betances, Andrew Miller (5-0) and Aroldis Chapman combined to throw three scoreless innings for the third straight game.

INDIANS 6, TIGERS 0: Francisco Lindor homered twice and Carlos Carrasco pitched a four-hitter to lead the Indians past host Detroit for their eighth consecutive win.

Carlos Santana and Yan Gomes also went deep for Cleveland, which improved to 8-0 against the Tigers this year.

NATIONAL LEAGUE

MARLINS 9, CUBS 6: Justin Bour and Giancarlo Stanton each drove in three runs, Paul Clemens got his first big league win in more than three years and Miami erased an early deficit to win at home.

Bour hit his 14th home run for the Marlins, who got to 40 wins in 75 games – or 20 games faster than they did a year ago.

PIRATES 6, DODGERS 1: Andrew McCutchen homered twice, Jeff Locke took a perfect game into the sixth and Pittsburgh won at home.

Locke (7-5) retired his first 15 batters before consecutive doubles by Scott Van Slyke and A.J. Ellis to start the sixth inning. Locke allowed one run and five hits in seven innings.

BREWERS 6, NATIONALS 5: Chris Carter hit a three-run homer, Matt Garza pitched six innings for this first win of the season and host Milwaukee beat Washington.

Carter connected for his 19th homer with two outs in the first. Jonathan Villar had three hits for Milwaukee.

PADRES 3, REDS 0: Drew Pomeranz drove in a pair of runs and pitched seven inning, leading San Diego to a win at Cincinnati in a game delayed a few minutes by the Reds’ tribute to Pete Rose, who was inducted into the team’s Hall of Fame.

METS 1, BRAVES 0: Pinch-hitter Kelly Johnson lined a leadoff home run in the 11th inning and New York outlasted the Braves at Atlanta.

ROCKIES 11, DIAMONDBACKS 6: Tony Wolters hit his first major league home run and drove in four runs for host Colorado.