I was referring to the OS and for the cgminer - because both, if downloaded and installed correctly work flawlessly on a rpi 4
For the OS, I'm using the Raspberry Pi Imager tool for Windows to write and check the OS to a 32GB micro SD card. All I do when it's finished is create the files for SSH and wifi network access.
For the cgminer, I have no idea how to properly install it on the Pi's SD card, as the directory for it gets removed when I try to start the miner or it gets removed when I reboot PuTTY on my laptop for SSH.