I have an old mid 2012 27" iMac in a similar situation except that it's extremely slow and almost unusable. I'm thinking about keeping it until its supported by end of this year and then move to Linux.
Too bad such an expensive computer at the time its barely unusable specially on XCode.