4 Turtles side by side are probably your best bet, have them detect a block beneath, if air place bricks, repeat 4 times while moving up, move forward one, down 3, repeat.
If it detects !air, move up one and place your block underneath then, repeating that while moving up 3 times.
You'd have to...