You cannot use Action Replay on GameCube. Action Replay (by Datel) was made for Game Boy Advance, Nintendo DS, and later 3DS/PSP/PS2—but never for GameCube.
.gct code files on SD:/codes/ – Swiss applies them at boot.Legal/Ethical Note: Only use codes on games you own. Online play (via WarPipe, XLink Kai, Dolphin netplay) with codes is bannable and ruins others' experience.