Australian fly-half James O'Connor finished a jinking run with a try in the very last play of the first half, to narrow the scoreline to 19-10.
The Lions lead at the break thanks to Alex Corbisiero's early try, and 14 points from the boot of Leigh Halfpenny.
Australia could have been ahead, but turned down five opportunities to kick penalties for goal in the first period.
More top news
Wales reached their first ever semi-final of a major tournament with a magnificent 3-1 victory over Belgium in Lille.
There'll be clear spells overnight which means temperatures will fall. Setting us up for a dry start to the weekend, but it won't last!
Watch the men who have been making history by taking Wales to the quarter-finals of the European Championships.