Skip to content

Instantly share code, notes, and snippets.

@okineadev
Created May 9, 2024 08:31
Show Gist options
  • Save okineadev/b80d7f9a065543655e203471d582f3f1 to your computer and use it in GitHub Desktop.
Save okineadev/b80d7f9a065543655e203471d582f3f1 to your computer and use it in GitHub Desktop.
How to get a free macOS machine for testing?

How to get a free macOS machine for testing?

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

  1. First of all, you need to create a separate public repository for testing (recommended)
  2. 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
  1. Go to the "Actions" tab

image

  1. Go to your workflow tab:

image

  1. Then click on the "Run workflow" button:

image

  1. Now after launch, in the logs you will be given a link and ways to connect via ssh

image


Done!

Now you can debug your application in macOS or any other environment!

@PatoFlamejanteTV
Copy link

Speedrun on how to get banned on GitHub

@okineadev
Copy link
Author

Speedrun on how to get banned on GitHub

I don't know how GitHub feels about this, I've already written here what you can and can't do.

If this violates GitHub rules then I will delete it

@PatoFlamejanteTV
Copy link

Speedrun on how to get banned on GitHub

I don't know how GitHub feels about this, I've already written here what you can and can't do.

If this violates GitHub rules then I will delete it

I guess its against the rules making an VPS since most ppl make it for mining BitCoins/DDoS, but i guess its ok to just test it :)

@okineadev
Copy link
Author

Speedrun on how to get banned on GitHub

I don't know how GitHub feels about this, I've already written here what you can and can't do.
If this violates GitHub rules then I will delete it

I guess its against the rules making an VPS since most ppl make it for mining BitCoins/DDoS, but i guess its ok to just test it :)

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment