How picky are you?
I'm using 7-speed Shimano bar ends with an 8-speed cassette on one of my bikes. It's OK for casual use, but it doesn't shift as nicely as matched components. Sometimes I have to finesse it up an extra gear then back down one. You can minimize the problem by adjusting the cable tension so that it's spot-on in a middle cog. That way the mismatch is divided into two directions.