They are fused in the core of the star due to great pressures and temperatures. They are made all the way through iron. At that point the star dies. If it is a really large star it will become a supernova when it dies, creating all of the elements beyond iron as well, but only in its death. No star can create anything beyond iron in its life cycle