Hi,
could you post a sketch of your project?
For the thermal movements of the lintel, use telescopic joints and slotted holes.
The pillars should be not less resistant of the lintel.
Flat roof implies snow: probably you need a calculation of the system.