China 's efforts to cultivate African ties date to the earliest days of the independence era on the continent , when Beijing armed and trained liberation movements and sent its workers by the thousands to build roads , railways and stadiums .