Rule 18.4 "Gybing" states "When an inside overlapped right-of-way boat must gybe at a mark to sail her proper course, until she gybes she shall sail no farther from the mark than needed to sail that course...".
That places an obligation to gybe on a boat at a leeward mark, but there is no corollary rule that would require a boat to tack at a windward mark.