My versions would be: there's no use in doing someting and it's no use to do something. I have nothing to back up my choices as correct; they just seem natural to me. And, they mean exactly the same thing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.