On the territory of Ukraine, they are going to legalize mining and make this type of activity in the national classifier.
mining cryptocurrencies (whether it is bitcoin mining with ASICs or altcoin mining with GPU/CPU) is simply using your computer and some computing power to find a hash, and this process in practice is not something that the government can make legal or illegal. that is your computer and your computing power and you can use it however you want.
what they make (il)legal is cryptocurrencies themselves.