DocsQuickstart: CI runners
Docs/Get started

Quickstart: CI runners

Run your GitHub Actions jobs on Anvil's machines by changing one line. Caches, Docker layers and git checkouts come from the same disk as the job.

diff
 jobs:
   test:
-    runs-on: ubuntu-latest
+    runs-on: anvil-4cpu

You need the Anvil app installed on the repository (see Quickstart: code review).

Let Anvil open the pull request #

  1. Open CI → Run on Anvil.

  2. Pick the repository and a runner size. anvil-4cpu suits most builds.

  3. Check the preview: every runs-on line that changes, file by file, and the jobs that stay where they are.

    The Run on Anvil page with a preview of the changed lines

  4. Click Open pull request, then merge it on GitHub.

The next run of those workflows runs on Anvil. Watch it under CI → Compute while it runs.

Or edit the line yourself #

Change runs-on in any job of .github/workflows/*.yml, commit and push:

yaml
jobs:
  test:
    runs-on: anvil-4cpu
Label CPUs Memory
anvil-2cpu 2 6 GB
anvil-4cpu 4 12 GB
anvil-8cpu 8 24 GB

Hosted on Anvil #

Repositories hosted on Anvil already run CI here: put a workflow in .gitea/workflows/ or .github/workflows/ with runs-on: ubuntu-latest. See Find failing, slow and flaky CI.

Next #