South African carmakers and a union representing thousands of their workers have reached a deal on wages, ending a costly eight-day strike, employers' body AMEO said.