How to teams execute appium with ci/cd using emulators or cloud devices

Hello ,
Want to understand how teams execute appium tests for ios and android from ci/cd tools?
During development we use emulators how does it work in automated testing ?