Select what is run based on a runner tag?

we have two build servers tagged windows and linux (OSes are according to tags).
we need to build our project for both environments.
how could this be achieved?

(our project requires different commands on linux and windows to be built)

thanks a lot in advance.