Think about it, rail is an eminently standardized piece of infrastructure that has existed for more than a century and millions of kilometers have been laid out. Don't you think _some_ effort has gone into automating the process and making it predictable?
Here is a (french) example of laying up to 2km of continuously-welded rail a day: https://www.youtube.com/watch?v=o97SB8c7Ezk