Building a starship, escaping the planet with a Stellarch, or activating the archonexus triggers the ending of Rimworld. Watching our colony die or getting hit by the meteor (if we enable that feature in the menu) also triggers the ending; however, these are considered fail states.