gitlab: split deprecated job into build/check stages