Variable cross section beam for steel building