There was a bit of advice published covering forest fires many years ago - I've not seen it recently. Living in a wooden barn, next to woodland and heath, I really ought to revise this stuff

. But, based on memory, it advised:
As soon as you suspect a wildfire take action – don’t wait supposing it’s not close but don't panic and start running without considering your options.
Get your map out, estimate the source of the fire using wind direction and any signs of smoke.
Determine the probable direction of fire travel based on the wind and topography. Fire moves very fast up hill, along gulleys, and into hill saddles.
Look at the vegetation – safety is provided by rocky terrain, close grazed meadow, and large areas of water. Stay away from dry scrub and woodland. Fire moves through woodland and scrub at very high speed – much faster than you can run.
Don’t assume that because a fire can’t reach you (the other side of a river for example) you are safe – radiated heat from flames and smoke can still kill you.
Instead of running directly away, in the same direction as the fire is travelling, consider moving at an angle to reach the edge of the fire where it moves more slowly and you may have a chance to get behind it – this is a risk that requires careful evaluation.
If you are safe from the fire heat but smoke is a problem keep as low to the ground as possible, breath through loose clothing, but watch for flame and ignition of close vegetation.