Did it several times in the high desert when I was younger. Just spreading embers around and covering them with dirt will not do the trick. You need to build a big enough fire for long enough to really get the ground cooking to a good depth. If you have enough fuel to get a good blaze going for a couple of hours there's no reason the ground shouldn't still be nice and warm in the morning.