I need to build a branch in unity

Hi, I’m new to this site so apologies - I’ve been working in a separate branch off of master and i need to test performance of this branch, but when I switch to the branch in Github Desktop and hit build in unity it only builds the master branch. How can i tell unity to build the branch i have selected?