> ## Documentation Index
> Fetch the complete documentation index at: https://docs.run.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Actions runners

> Run your existing GitHub Actions jobs on run.cloud sandboxes: change runs-on to runcloud-standard-N and keep every Actions feature.

# GitHub Actions runners

run.cloud runs your GitHub Actions jobs on **real, one-job GitHub Actions runners**
in run.cloud sandboxes. You keep your workflows as they are and change one line:

```yaml theme={null}
jobs:
  test:
    runs-on: runcloud-standard-4
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npm test
```

Because the job runs on a real Actions runner, the whole Actions feature set works:
`uses:` actions, `services:`, `container:`, caches, artifacts and OIDC. Jobs and logs
stay in the normal GitHub Actions UI.

## Sizes

| `runs-on` | vCPU | Memory | Disk |
| - | -: | -: | -: |
| `runcloud-standard-2` | 2 | 8 GiB | 40 GiB |
| `runcloud-standard-4` | 4 | 16 GiB | 40 GiB |
| `runcloud-standard-8` | 8 | 32 GiB | 80 GiB |
| `runcloud-standard-16` | 16 | 64 GiB | 160 GiB |

Linux x64 only. A job must ask for exactly one `runcloud-standard-N` label. The only
other labels it may list are `self-hosted`, `linux` and `x64`.

## Set it up

**1. Connect GitHub**

In the [dashboard](https://run.cloud/dashboard/settings), open **GitHub CI** and
install the [Run Cloud CI](https://github.com/apps/run-cloud-ci) GitHub App on
the repositories you want.

**2. Change runs-on**

Replace `ubuntu-latest` with a `runcloud-standard-N` label, or let the dashboard
open the pull request for you (below).

**3. Push**

Each queued job gets a fresh sandbox, a runner registered for that one job, and
a teardown when the job ends.

## Migrate with one pull request

The dashboard can scan your workflows and open a pull request that swaps GitHub's
hosted Linux runners for run.cloud runners. It uses `runcloud-standard-2` on private
repositories and `runcloud-standard-4` on public ones, matching the size GitHub
gives each. Review the diff and merge it like any other pull request.

## Fall back to GitHub's runners

GitHub cannot move a queued job to another runner family, so a fallback is a re-run.
Send the first attempt to run.cloud and any re-run to GitHub's hosted runners:

```yaml theme={null}
runs-on: ${{ github.run_attempt == '1' && 'runcloud-standard-4' || 'ubuntu-latest' }}
```

## Pricing

Runner sandboxes are billed like any run.cloud sandbox, by the second:
$0.00000492 per physical core-second and $0.00000083175 per GiB-second (one physical
core is two vCPUs). A `runcloud-standard-2` runner costs about \*\*$0.0007 per minute**.
With a card on file, the first $15 of usage each month is free. See
[pricing](https://run.cloud/pricing/).

## Good to know

* On a public repository, pull requests from forks can run on these runners. That is
  GitHub's rule for self-hosted runners on public repositories. Each job gets a fresh
  sandbox that is destroyed afterwards, and the repository owner pays for it.
* A runner that has not picked up a job within 10 minutes, or that has run for 6
  hours, is stopped.
* The older [`runs-on: runcloud`](https://docs.run.cloud/ci/github-workflows) path, where run.cloud runs a
  supported subset of workflow syntax itself, keeps working.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.