I'm lucky because I still live with my parents and we all work different shifts.
I work 11-7 mon-fri, my mam works 12 hours shifts on a rota basis so she could work a full week then have a week or two off sort of thing.
And my dad only works 2 hours in the morning 7-9 and 2 hours in the afternoon 2-4 so my pup is never really alone for a long time at all.
But when she is alone she sleeps in her crate with her toys