You might want to do some serious reading about mining.

If your doing this to make money I wish you luck.
After you factor in the cost of hardware and power usage you'll be very lucky to break even.

If your doing this just for yuks the gpu is more important.

Compare the perf of whatever cpu you were going to use against whatever ryzen cpu you pick.