Simulation of a nodal-line semimetal in amplitude-shaken optical lattices