If you have an application that you want to test on different architectures and operating systems (including macOS) - then you can use the runners that GitHub provides for free for open source projects
First of all, remember these simple rules:
- Don't abuse virtual machines
- Do not use them for illegal purposes and for DDoS attacks
- First of all, you need to create a separate public repository for testing (recommended)
- Create a workflow with the following content:
name: Test
# Controls when the workflow will run
on:
workflow_dispatch:
jobs:
test:
# The type of runner that the job will run on
# See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
runs-on: macos-13
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- Go to the "Actions" tab
- Go to your workflow tab:
- Then click on the "Run workflow" button:
- Now after launch, in the logs you will be given a link and ways to connect via ssh
Done!
Now you can debug your application in macOS or any other environment!
Speedrun on how to get banned on GitHub