You could probably cross-compile on the computer you already own and run the code in an emulator. Or buy a developer board and run on the actual hardware. Raspberry Pi RP2040 boards are pretty inexpensive.
Mac is a lot of money to spend if you care about good Linux support, and Raspberry Pi makes for a very weak workstation (if you can even get one for a reasonable price).
The demand for a developer-oriented ARM workstation is there, but the market still hates us.