Manufacturing cosmic rays in the evolving dynamical states of galaxy clusters