# ubuntu-slim, ubuntu-latest or Sengi Basic for light GitHub Actions jobs

Source: https://sengi.run/blog/ubuntu-slim-vs-ubuntu-latest

By Sengi · Last checked November 28, 2026

## Should light GitHub Actions jobs run on ubuntu-slim, ubuntu-latest or Sengi Basic?

In a private repository, move short jobs that need no Docker to `ubuntu-slim`: it costs $0.002 a minute against `ubuntu-latest`’s $0.006, and since every job is billed at least one whole minute, a 15-second lint job costs a third as much. It is 1 vCPU and 5 GB in a container, so jobs run slower (1.6 to 3 times as long in our tests), it has no Docker daemon, and GitHub kills any job at 15 minutes. In a public repository keep `ubuntu-latest`: it is free and has 4 vCPU there. If you want a cheaper rate than slim without its limits, Sengi Basic 2 vCPU is $0.001 a minute with 2 vCPU, 8 GB and Docker.

**Last checked November 28, 2026**: specs and rates from GitHub’s hosted-runner reference, its Actions runner pricing reference and the January 22, 2026 changelog entry, all read that day; job times from runs we made that day.

## What `ubuntu-slim` is

GitHub put a 1 vCPU Linux runner into public preview on October 28, 2025 and made it generally available on January 22, 2026, both under the label `ubuntu-slim`. GitHub’s changelog describes it as built for “automation tasks, issue operations” and short jobs outside heavyweight CI/CD builds. From GitHub’s hosted-runner reference, read November 28, 2026:

|  | `ubuntu-slim` | `ubuntu-latest` (private repo) | Sengi Basic 2 vCPU |
| --- | --- | --- | --- |
| CPU and memory | 1 vCPU, 5 GB | 2 vCPU, 8 GB | 2 vCPU, 8 GB |
| Disk | 14 GB SSD | 14 GB SSD | 75 GiB |
| Isolation | Unprivileged container, removed after the job | Fresh VM per job | Fresh VM per job |
| Docker | No | Yes | Yes |
| Job time limit | 15 minutes | GitHub’s usual job limit | 2 hours on free minutes; a card on file lifts it |
| Price per minute | $0.002 | $0.006 | $0.001 |
| Public repositories | Free | Free, and 4 vCPU, 16 GB | $0.001 |

GitHub’s pricing reference bills slim minutes under the SKU `actions_linux_slim` and rounds “the minutes and partial minutes each job uses up to the nearest whole minute”. Sengi’s figures are from its [runner sizes](https://sengi.run/docs/runner-sizes) and [billing](https://sengi.run/docs/billing) docs; Sengi also rounds each job up to a whole minute.

“Minimal set of tools” is GitHub’s phrase for slim’s image, and it means it: our Rust build had to install the toolchain first (14 to 22 seconds), where `ubuntu-latest` has it preinstalled. Expect to add setup steps for anything beyond the basics.

## How much slower is one core? We timed four light jobs

We ran the same jobs on `ubuntu-slim` and `ubuntu-latest` in a private repository on November 28, 2026, three runs each (two for the build), and read each job’s start and finish time from GitHub’s jobs API. Small samples, so read them as a rough guide, not a benchmark.

| Job | `ubuntu-slim` | `ubuntu-latest` | Billed cost, slim vs latest |
| --- | --- | --- | --- |
| Lint: `ruff check` on the FastAPI source | 13 to 15 s | 7 to 10 s | $0.002 vs $0.006 |
| Unit tests: setup-python, install and pytest for itsdangerous | 27 to 41 s | 10 to 13 s | $0.002 vs $0.006 |
| Release build: `cargo build --release` of ripgrep | 113 to 117 s | 60 to 81 s | $0.004 vs $0.006 to $0.012 |
| `docker version` | Fails: no daemon | 4 s | Does not run on slim |

Each light job finished in under a minute on both runners, so each was billed exactly one minute, and slim cost a third as much despite being slower. Comparing medians, slim took 1.9 times as long on lint, 3 times on the unit tests and 1.6 times on the compile, and the compile still cost less, because the per-minute price is a third. Slim stops being cheaper only when a job takes more than three times as many billed minutes on it, and it stops working at 15 minutes.

## The arithmetic for your own jobs

Take a job’s length on `ubuntu-latest`, multiply by how much slower one core is for that job, round both up to whole minutes, and multiply by the rates:

| Job on `ubuntu-latest` | `ubuntu-latest` at $0.006 | `ubuntu-slim` at $0.002, if 2× slower | Sengi Basic 2 vCPU at $0.001, at the same length |
| --- | --- | --- | --- |
| 40 seconds | 1 min, $0.006 | 2 min (80 s), $0.004 | 1 min, $0.001 |
| 4 minutes | 4 min, $0.024 | 8 min, $0.016 | 4 min, $0.004 |
| 8 minutes | 8 min, $0.048 | 16 min: over the limit, the job fails | 8 min, $0.008 |

The Sengi column assumes the job takes as long as it does on `ubuntu-latest`, which has the same 2 vCPU, 8 GB shape; it is arithmetic, not a timing. Multiply by your job count: 2,000 forty-second lint jobs a month cost $12 on `ubuntu-latest`, $4 to $8 on slim depending on whether they cross the minute, and $2 on Sengi Basic. To see how many short jobs you actually run, [audit your bill with one `gh` command](https://sengi.run/blog/audit-github-actions-bill).

## When `ubuntu-slim` is the right answer

- **Automation jobs in private repositories**: labelling issues, commenting on pull requests, calling an API, running a small script. They finish in seconds, need no Docker and touch nothing heavy, and slim is a third of the price with no new vendor.
- **Lint, format and type checks that finish well inside 15 minutes**, when you would rather not add a runner provider for a few dollars a month.
- **Not in public repositories.** There `ubuntu-latest` is free and has four times the CPUs.
- **Not for Docker, service containers, builds that need more than 5 GB of memory, or anything that might grow past 15 minutes.** A job that fails at minute 15 costs the 15 minutes and the re-run.

## When Sengi Basic is the better fit

Sengi Basic 2 vCPU is $0.001 a minute, half of slim’s rate and a sixth of `ubuntu-latest`’s, on the same 2 vCPU, 8 GB shape as `ubuntu-latest` in a private repository, with Docker and a full VM for each job. It makes sense when:

- your light jobs run thousands of times a month, so the per-minute rate shows on the bill;
- some of them need Docker or service containers, which rules slim out;
- a job is close to slim’s 15-minute limit, or slower than you like on one core;
- you want one runner for light jobs and builds, with `sengi-basic-4-ubuntu-2404` and `sengi-basic-8-ubuntu-2404` at $0.002 and $0.004 for the heavier ones.

Sengi runs Linux x64 only, so macOS, Windows and arm64 jobs stay where they are.

## A mixed fleet: one label per job

The runner is chosen per job, so you can use all three in one workflow. In a private repository:

```
jobs:
  label-pr:
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-slim              # seconds of API calls, no Docker
    permissions:
      contents: read
      pull-requests: write
    steps:
      - uses: actions/labeler@v5      # reads .github/labeler.yml

  lint:
    runs-on: ${{ vars.LINT_RUNNER || 'ubuntu-slim' }}
    steps:
      - uses: actions/checkout@v4
      - run: pipx run ruff check .

  test:
    runs-on: ${{ vars.TEST_RUNNER || 'ubuntu-latest' }}
    services:
      postgres:                       # service containers need Docker: not slim
        image: postgres:17
        env:
          POSTGRES_PASSWORD: postgres
        ports:
          - 5432:5432
    steps:
      - uses: actions/checkout@v4
      - run: make test
```

Reading the label from a variable lets you move the lint or test job later, to Sengi or back, without a pull request. [Switching runners with a repository variable](https://sengi.run/blog/github-actions-runner-rollback) shows the pattern, a side-by-side comparison workflow and the rollback.

## Frequently asked questions

### What is ubuntu-slim?

GitHub's 1 vCPU Linux runner: 1 CPU, 5 GB of RAM and 14 GB of SSD, running your job in an unprivileged container rather than a full VM, with a 15-minute job limit. It costs $0.002 a minute in private repositories, a third of ubuntu-latest's $0.006, and became generally available on January 22, 2026.

### Is ubuntu-slim cheaper than ubuntu-latest?

For any job that finishes in under a minute on both, yes: each is billed one minute, $0.002 against $0.006. For longer jobs it stays cheaper unless the job takes more than three times as many billed minutes on one core. In our tests it took 1.6 to 3 times as long, comparing median times.

### Can ubuntu-slim run Docker?

No. The Docker client is installed but there is no daemon: docker version failed with no such file /var/run/docker.sock in our test. GitHub's runner reference says operations that need elevated privileges, such as Docker-in-Docker, are not supported.

### What happens when an ubuntu-slim job runs past 15 minutes?

GitHub ends it and the job fails. GitHub's hosted-runner reference states the 15-minute timeout for single-CPU runners.

### Should I use ubuntu-slim in a public repository?

There is little reason to. Standard GitHub-hosted runners are free in public repositories, and there ubuntu-latest has 4 vCPU and 16 GB, so it is faster at the same price of nothing.

### Where does Sengi Basic fit?

Sengi Basic 2 vCPU costs $0.001 a minute, half ubuntu-slim's rate, with 2 vCPU, 8 GB, Docker and a full VM per job. It suits private repositories with enough light jobs that the minutes add up, and jobs that outgrow slim's limits.
