Dozens of workers were trapped when the building collapsed after a huge earthquake hit neighbouring Myanmar.