Interfacing a quantum dot spin with a photonic circuit