This sentence emphasizes the action.
And " What did you do ?" mean you did something in the past and you finished it. That action doesn't connect to present.It emphasizes the perfection of an action.
If I were you I would choose " what did you do?"
Student or Learner