Lebanon on Saturday announced the formation of a compromise government after a 10-month stalemate, during which the war in neighbouring Syria deepened longstanding political divisions.