Maybe you can try googling something like "github actions M1 iMac vs Intel MacBook Pro" to search for clues to help you.
Here is the build.yml that github actions uses to build vpython
It contains lines like the following for building for different platforms
platform: [ubuntu-latest, macos-latest, windows-latest]
Doing a google search such as the one above will give you links like the following
I am not a Mac user and don't know much about github actions but maybe you can sift through the google search results to find a potential solution to your problem.
John