Quit.
…
…
Find somewhere else to work. It will be nicer and have higher pay. Tech companies are sooo desperate to boost their diversity numbers right now. If you are a halfway decent engineer and identify with one of the thirty gender identities that are not male, Silicon Valley Wants You.
(Seriously though, tech companies are hiring; women and minorities especially encouraged to apply.)