I repaired once a Mercedes 500 sport Al block by welding.
I can tell you that it can be pretty tricky.
First, it only worth doing it if that part of the block is not solicited dynamically. If that's the case, you can do the welding.
Then as the others told, stop the crack with drilling holes at the ends, and also clean the surface as much as you can.
Then there are two possibilities:
1. If there are little internal stresses due to the casting process in the block, then you are lucky and you can weld it from one end to the other.
2. If there are lots of internal stresses - this was my case - when I welded it, other cracks appeared in other places of the block, and these had to be welded as well. I only managed to weld all the cracks by welding 1 centimeter and then stop and cool it with compressed air, and then weld again 1 cm and then stop and cool... and so on. This way new cracks could not emerge, but the internal stress status surely grew. And that's why it won't hold if there are dynamical stersses.
Anyway, in any of the cases do not grind down the weld if not specifically necessary, because Al welding has micropores by nature, you will never get rid of those.
Then check the whole block with penetrating liquids.
My engine is working ok now, and I did the welding two years ago.
Good luck.