My approach has been to lift on my "rest" days, eg off-bike days. Usually I ride 5-6 days a week and lift once or twice week. Those 5-6 bike days include a polarized approach (eg easy or hard, not much tempo except group ride or racing on the weekend), with the day after weights usually being a really easy recovery spin that may gradually increase toward upper zone 2/VT1 if the legs feel like it (sometime they do, sometimes they don't). Interestingly, I found that riding hard on Sat/Sun doesn't really seem to interfere with lifting on Monday. When I first started this schedule, I would often go into the gym with the legs feeling flat/tired from the weekend's riding and being sure the weight workout was going to go poorly. But it just didn't happen.
I definitely can't do hard intervals on the bike the day after squats/deadlifts, though; hence the easy ride Tues, with interval work following on Weds.