本文へ移動
毎月3,000クレジット無料。Basic でも Premium でも。カード不要。今すぐ始める
Sengi
メニュー

Sengi · GitHub Actions ランナー コンピューターを、貸す。

CI で、おかしなことが起きています。

CI のランナーとは、借りたコンピューターのことです。ジョブを渡して、6分ほど動かして、返す。売っているのは、それだけです。

コンピューター自体は安いものです。16コアのサーバーは月300ドルほどで借りられます。それを2コアのランナーに分けて休ませずに動かせば、ランナー1台あたりのコストは、1分0.1セントを大きく下回ります。

GitHub はその6倍を請求しています。ランナーだけを売っている会社でも4倍です。彼らはこれを「コンピューターを貸す」とは言いません。その値段でコンピューターを借りる人はいないからです。代わりに「プラットフォーム」と呼びます。

私たちは「コンピューターを貸す」と言います。電気や水道と同じ、ライフラインです。なくては困る。きちんと動いて当然。そして値段は、原価に近くあるべきです。

だから私たちは、コンピューターを貸しています。GitHub が1分 $0.006 で売っているマシンを $0.001 で。速いマシンは $0.003 で。ジョブごとに新しいマシンを用意します。ベンチマークの実行結果はすべて公開しています。負けたものも含めて。

安さと良さは、一度も矛盾したことがありません。ただ、認めると高くつく話だった。それだけです。

01 / はじめかたUBUNTU-LATEST をそのまま置き換え

1行の変更で
導入できます。

ステップ、トリガー、シークレット、ログは GitHub Actions のまま。Sengi は各ジョブを動かすマシンを用意するだけです。

  1. リポジトリを接続 · GitHub App をワンクリックでインストール。設定ファイルもトークンも要りません。
  2. 1行を変更 · ubuntu-latest を Sengi のラベルに変えてマージします。runs-on: sengi-premium-4-ubuntu-2404
  3. Sengi がジョブを実行 · ジョブごとに新しい Ubuntu 24.04 x64 の仮想マシンを用意し、終わったら削除します。
  4. 結果は GitHub に · ステータス、チェック、ログはこれまでどおり GitHub Actions に表示されます。
5分
導入から最初のジョブまで

ロックインはありません。ワークフローは GitHub Actions のままなので、戻すときも1回の revert で済みます。

GitHub を接続

コーディングエージェントに任せることもできます

プロンプト1つで導入。

コーディングエージェントは、チームがレビューしきれないほどの速さでプルリクエストを作ります。移行も任せてしまいましょう。リポジトリが接続されているかを確認し、対象のジョブをすべて Sengi のランナーに移して、レビュー用のプルリクエストを作成します。プロンプトはエージェント向けなので英語のままです。

Migrate GitHub Actions to Sengi runners
# Migrate GitHub Actions to Sengi runners

Migrate this repository's workflows from GitHub-hosted runners to Sengi runners.
Keep GitHub Actions; change the `runs-on` line of each supported job (plus one
caching line for `astral-sh/setup-uv`, see Step 5), and open a pull request the
user reviews.

**Prerequisites:** `gh` CLI authenticated, and the repository connected to a Sengi
project at https://app.sengi.run — installing the GitHub App alone is not enough,
see Step 1.

## Configuration

| Setting | Value |
| --- | --- |
| Default target | `sengi-basic-2-ubuntu-2404` (2 vCPU, 8 GB) or `sengi-premium-2-ubuntu-2404` (2 vCPU, 8 GB), as the user picks in Step 5 |
| Larger targets | `sengi-basic-4-ubuntu-2404` (4 vCPU, 16 GB), `sengi-basic-8-ubuntu-2404` (8 vCPU, 32 GB), `sengi-premium-4-ubuntu-2404` (4 vCPU, 16 GB), `sengi-premium-8-ubuntu-2404` (8 vCPU, 32 GB) |
| Replaceable source labels | `ubuntu-latest`, `ubuntu-24.04` |
| Branch | `migrate-to-sengi-runners` |

Sengi runs Ubuntu 24.04 on x64 only. Every Sengi label above is a complete label —
do not abbreviate one, and do not invent a size that is not in this table. Do not
write the older `sengi-standard-` labels: they still run, as Premium, but are not
for new workflows.

Replace all UPPERCASE placeholders (`OWNER`, `REPO`, `BRANCH_NAME`, `HEAD_OID`,
`BASE64_CONTENT`, `FILE_NAME`, `N`, `DEFAULT_BRANCH`, `PROJECT_ID`) with actual values from
previous steps.

## Procedure

### Step 1: Confirm the repository is connected to Sengi

Ask the user:

> Is this repository connected to a Sengi project? Go to https://app.sengi.run,
> sign up, choose **Connect GitHub**, and pick this repository when
> GitHub asks which repositories to grant. That single step installs the App and
> connects the repository. Tell me when it is done.

Installing the Sengi GitHub App straight from GitHub does **not** connect the
repository — Sengi connects it when you pick it in that flow, and a job on an
unconnected repository queues forever instead of failing.

**Optional check.** If the user has already given you a Sengi API token in
`SENGI_TOKEN` and the project id (`pj…`, shown in the project's URL), read the
connection yourself instead of relying only on their word. Never ask the user to
create or paste a token for this; without one, the user's confirmation is the check.
Never print `$SENGI_TOKEN` or put it in a commit, pull request or log.

```bash
curl -fsS -H "Authorization: Bearer $SENGI_TOKEN" \
  https://api.sengi.run/project/PROJECT_ID/github/status
```

The token needs `Project:github`. In the JSON, find this repository (`name` is
`owner/repo`) under `installations[].repositories[]`:

- Connected: the repository's `refusal` is `null`. Go to Step 2.
- No such repository: it is not connected. Send the user to https://app.sengi.run
  to choose **Connect GitHub** and pick it, then check again once they say it is
  done.
- `refusal: "repository_disabled"`: the user turned this repository off in their
  Sengi project. They must turn it back on there.
- `refusal: "repository_not_connected"`: GitHub no longer shows Sengi this
  repository. The user must grant it to the Sengi App in GitHub's installation
  settings, or reconnect it at https://app.sengi.run.
- `refusal: "installation_not_active"` with `on_hold` true: Sengi is waiting to
  confirm the installation with GitHub. If `rechecking` is true, wait and check
  again every minute for up to 10 minutes. If it is still held, or `rechecking`
  is false, the user must open https://app.sengi.run and verify the connection.
- `refusal: "installation_not_active"` with `on_hold` false: the App was suspended
  or uninstalled on GitHub. The user must reconnect with **Connect GitHub** at
  https://app.sengi.run.
- `refusal: "project_runner_admission_stopped"`: runners are stopped for this
  project; the user must resume them at https://app.sengi.run.
- `setups[]` with `stage: "approval_needed"`: the GitHub organization's owner must
  approve the Sengi App request on GitHub. Tell the user, and check again once
  they say it is approved.
- Any other unfinished `setups[]` stage (for example `action_needed`): send the
  user to https://app.sengi.run and pass along its `error_code`. A setup with
  `resumable: true` can be continued there.
- Any other non-2xx response (`401`, `403`, a `404` from a wrong project id or a
  server without the endpoint) or a curl failure: fall back to asking the user.

A non-null `funding` object appears only if the token also holds `Project:billing`. Its
fields (`available_credits`, `exhausted`, `card_on_file`, `payment_accepted`,
`spending_cap_reached`) are inputs to whether free jobs are accepted, not the
answer: do not conclude jobs will or will not run from them. Report them, and
read the final answer from the first job in Step 7.

**Without a successful check, do not run any commands or proceed to Step 2 until
the user explicitly confirms.** After a successful check, tell the user what you
found and proceed.

Personal repositories are supported. The repository does not need to belong to an
organization.

### Step 2: Verify CLI auth and the workflow scope

Verify `gh auth status` succeeds. If not, direct the user to install `gh` from
https://cli.github.com/ and run `gh auth login`.

Writing a file under `.github/workflows/` needs the `workflow` scope, which
`gh auth login` does not grant by default. Check for it:

```bash
gh auth status 2>&1 | grep -o "Token scopes:.*"
```

If `workflow` is not listed, stop and have the user run
`gh auth refresh -h github.com -s workflow` before you continue. Without it the
commit in Step 6 is refused, after the branch has already been created.

### Step 3: Get the repository

Ask the user for the repository (`owner/repo`) unless the working directory already
identifies one, in which case confirm it. Then read its default branch and check the
user can push to it:

```bash
gh api repos/OWNER/REPO --jq '{default_branch, can_push: .permissions.push}'
```

If `can_push` is false, stop: opening a branch needs write access.

### Step 4: Discover workflows

Fetch every workflow file in one call:

```bash
cat <<'QUERY' | gh api graphql --input -
{
  "query": "query($owner: String!, $repo: String!) { repository(owner: $owner, name: $repo) { id nameWithOwner defaultBranchRef { name target { oid } } object(expression: \"HEAD:.github/workflows\") { ... on Tree { entries { name object { ... on Blob { text } } } } } } }",
  "variables": { "owner": "OWNER", "repo": "REPO" }
}
QUERY
```

`HEAD` in that expression is a Git ref, not a placeholder — do not replace it.

If the response is truncated or errors on size, fall back to REST: read the default
branch with `gh api repos/OWNER/REPO --jq '.default_branch'`, the HEAD SHA with
`gh api repos/OWNER/REPO/git/ref/heads/DEFAULT_BRANCH --jq '.object.sha'`, the file
list with `gh api repos/OWNER/REPO/contents/.github/workflows`, and each file with
`gh api repos/OWNER/REPO/contents/.github/workflows/FILE_NAME`. The `content` field
is base64 — decode it before scanning.

Save `defaultBranchRef.name`, `.target.oid` and the `entries[]`. For each `.yml` or
`.yaml` file, read every job under `jobs:` and classify it.

**A job is eligible when all of these hold:**

- the job is an ordinary mapping with its own steps — it has no `uses:` key;
- its `runs-on:` is a single-line scalar, plain or quoted, on one line;
- that scalar contains no `${{ … }}` expression;
- that scalar is one of the replaceable source labels in the table above.

**A job is not eligible when any of these hold.** Report each with its reason:

| Shape | Reason to report |
| --- | --- |
| `runs-on: ubuntu-22.04`, `ubuntu-20.04` | Sengi runs Ubuntu 24.04 only |
| `runs-on: windows-*`, `macos-*` | Sengi runs Linux x64 only |
| `runs-on: ubuntu-latest-16-cores` and other larger runners | not a Sengi size |
| `runs-on: [self-hosted, linux, ubuntu-latest]` (an array) | Sengi takes one label, not a list — needs manual review |
| `runs-on: ${{ matrix.os }}` or any expression | the label is decided at runtime — needs manual review |
| `runs-on: { group: …, labels: [ … ] }` | group syntax — needs manual review |
| a job with `uses:` (a reusable workflow) | the runner is chosen in the called workflow |
| no `runs-on:` at all | nothing to change |

A job with a `strategy:`/`matrix:` block **is** eligible as long as its own
`runs-on:` is a literal supported label — the matrix multiplies the job, it does
not choose the runner. Only `runs-on` that reads *from* the matrix is ineligible.

**Whole files to skip,** because a targeted one-line edit is not safe in them: any
file using YAML anchors or aliases (`&name`, `*name`, `<<:`), explicit tags, a
`%YAML` directive, a duplicate key, or more than one YAML document — that means two
documents separated by a `---` line, **not** a file that merely opens with `---`,
which is ordinary and fine. Report these as "needs manual review".

Also check whether the repository lints its workflows. If `.github/actionlint.yaml`
or `.github/actionlint.yml` exists, or a workflow runs actionlint, the Sengi labels
must be declared there or that lint job fails on the pull request before any job
reaches Sengi. Add the labels you are about to use under `self-hosted-runner.labels`
in that file, in the same commit, and say so in the summary:

```yaml
self-hosted-runner:
  labels:
    - sengi-basic-2-ubuntu-2404
```

If the repository runs actionlint but has no config file, create it with only that
key. This is the one file other than a workflow you may change, and only for this.

Show the user a summary: the workflows that will change, the label each job moves
from and to, and every job not migrated with its reason from the table.

If nothing is eligible, stop and say so.

### Step 5: Choose sizes and preview

**Never create a pull request before the user confirms the changes.**

Ask the user whether they want Basic or Premium before you change anything:
Basic for the lowest cost, Premium for faster builds (see What Sengi costs). Then
default every eligible job to that tier at 2 vCPU: `sengi-basic-2-ubuntu-2404` or
`sengi-premium-2-ubuntu-2404`. That is the like-for-like size for a standard GitHub Linux runner.
If no one is there to answer, use `sengi-basic-2-ubuntu-2404`, the label Sengi's
runner sizes page matches to `ubuntu-latest`, and say in the pull request which
tier you chose and that swapping `basic` for `premium` in a label moves that job
to Premium.
Offer the larger sizes for jobs the user says are slow or memory-hungry; each step
up doubles both the machine and the price, and one job can be a different size or
tier from its neighbours in the same file.

Then show the exact diff per workflow. The rules for writing it:

- change **only** the `runs-on` scalar, never the surrounding lines;
- preserve the file byte for byte otherwise — indentation, key order, comments,
  blank lines, quote style and the trailing newline;
- if the old label was quoted, keep the quotes and replace what is inside them;
- skip commented-out lines.

**uv caching.** If a migrated job uses `astral-sh/setup-uv`, add `enable-cache: true`
under that step's `with:` (create `with:` if the step has none) and pin the action to
`astral-sh/setup-uv@v10.3.2` or later. setup-uv's default `enable-cache: auto` only
caches on GitHub-hosted runners, so without this line uv caching is off on Sengi and
every run reinstalls from scratch. setup-uv has no floating `v10` tag, so use the full
version:

```yaml
- uses: astral-sh/setup-uv@v10.3.2
  with:
    enable-cache: true
```

If the step already sets `enable-cache`, leave it. These are the only lines besides
`runs-on` you may change.

The diff a reviewer sees should be one changed `runs-on` line per migrated job, plus
the setup-uv lines where a job uses it, and nothing else.

### Step 6: Open the pull request

**Branch.** Check for an existing branch first:

```bash
gh api repos/OWNER/REPO/git/matching-refs/heads/migrate-to-sengi-runners --jq '.[].ref'
```

If any exist, take the highest numeric suffix and add one — `-2` if none has a
suffix. Then create it:

```bash
gh api repos/OWNER/REPO/git/refs -f ref=refs/heads/BRANCH_NAME -f sha=HEAD_OID
```

**Commit.** One atomic commit for every file, contents base64-encoded. This creates
a verified commit without touching the user's git config:

```bash
cat <<'MUTATION' | gh api graphql --input -
{
  "query": "mutation($input: CreateCommitOnBranchInput!) { createCommitOnBranch(input: $input) { commit { oid url } } }",
  "variables": {
    "input": {
      "branch": {
        "repositoryNameWithOwner": "OWNER/REPO",
        "branchName": "BRANCH_NAME"
      },
      "message": {
        "headline": "Migrate N CI workflows to Sengi runners",
        "body": "Replaced runners per file:\n- file1.yml: ubuntu-latest → sengi-basic-2-ubuntu-2404\n- file2.yml: ubuntu-24.04 → sengi-basic-4-ubuntu-2404"
      },
      "expectedHeadOid": "HEAD_OID",
      "fileChanges": {
        "additions": [
          { "path": ".github/workflows/FILE_NAME", "contents": "BASE64_CONTENT" }
        ]
      }
    }
  }
}
MUTATION
```

Check the response carries a `commit.oid`. On an `expectedHeadOid` mismatch, read the
head of **the branch you just created** — not the default branch, whose SHA is the
one that just mismatched — and retry the commit once with that value:

```bash
gh api repos/OWNER/REPO/git/ref/heads/BRANCH_NAME --jq '.object.sha'
```

On any other error, report it and stop — never open a pull request on top of a
failed commit.

`N` is the count of changed workflow files.

**Pull request:**

```bash
gh pr create --repo OWNER/REPO --head BRANCH_NAME --base DEFAULT_BRANCH \
  --title "Migrate N CI workflows to Sengi runners" --body "..."
```

Body:

```
## Summary
Moves CI from GitHub-hosted runners to Sengi runners. Same GitHub Actions, same
workflows, same logs — only the `runs-on` line changes.

## Changes
- `file1.yml`: `ubuntu-latest` → `sengi-basic-2-ubuntu-2404`
- `file2.yml`: `ubuntu-24.04` → `sengi-basic-4-ubuntu-2404`

## Not migrated
- `file3.yml` (job `build`): uses `${{ matrix.os }}` — needs manual review
(or "Every eligible job was migrated.")

## After merging
The next run of these workflows executes on Sengi. Logs, statuses and required
checks stay in GitHub. To undo it, revert this pull request.
```

### Step 7: After the merge

Offer to check the first run. When the user says the pull request is merged:

```bash
gh run list --repo OWNER/REPO --branch DEFAULT_BRANCH --limit 5 \
  --json status,conclusion,name,createdAt,databaseId
```

Look for runs created after the merge.

- A job that reaches `in_progress` is working. A runner that is not already warm has
  to be provisioned first, so allow around a minute before reading anything into a
  job that is still queued.
- A job still `queued` after a few minutes has **three** likely causes, in this
  order. Do not assert the first one without ruling out the others:
  1. **The repository is not connected.** Most likely if *no* job has ever started.
     If you have a token, run the Step 1 status check and read its `refusal`;
     otherwise send the user to https://app.sengi.run to check this repository is listed.
  2. **The free account's concurrency limit.** A free account runs at most 12 vCPU
     at once — for example six 2-vCPU jobs, three 4-vCPU jobs, or one 8-vCPU job
     beside two 2-vCPU jobs. Jobs over that line wait for a running one to finish,
     which is normal and resolves itself.
     Suspect this first when some jobs started and others did not, and especially
     after migrating a matrix job that fans out wider than six.
  3. **The monthly free allowance is spent.** New free jobs wait until the next UTC
     month; jobs already running finish. The user can see this in their project.
- A job that fails on a step that passed on GitHub-hosted runners is worth
  reporting: give the user the failing step and the run URL.

## Error handling

| Error | What to do |
| --- | --- |
| `gh` missing or logged out | Install from https://cli.github.com/, run `gh auth login` |
| Token lacks the `workflow` scope | `gh auth refresh -h github.com -s workflow`, then retry |
| The pull request's own lint fails on an unknown runner label | actionlint — declare the label under `self-hosted-runner.labels` in `.github/actionlint.yaml` |
| 403 / insufficient permissions | The user needs write access to the repository |
| Repository not found | Check the name and the user's access |
| No `.github/workflows` | Nothing to migrate; stop |
| 422 creating the branch | The branch exists — add a numeric suffix |
| `expectedHeadOid` mismatch | Re-fetch the HEAD SHA and retry the commit once |
| GraphQL response truncated | Fall back to the REST calls in Step 4 |
| Rate limit exceeded | Wait a few minutes and retry |
| Jobs stay `queued` after merge | Check all three causes in Step 7 before blaming the connection |
| A job needs Ubuntu 22.04, Windows, macOS or arm64 | Leave it on GitHub-hosted runners |

## What Sengi costs

Basic costs $0.001 a minute for 2 vCPU with 8 GB, $0.002 for 4 vCPU with
16 GB, and $0.004 for 8 vCPU with 32 GB. Each job's execution time rounds
up to a whole minute; boot and teardown are not billed. New accounts get
3,000 free credits each month, on Basic or Premium: on Basic that is 3,000
minutes at 2 vCPU, 1,500 at 4 vCPU, 750 at 8 vCPU, or any mix, and a Premium
minute uses 3 times the credits of a Basic minute of the same size. Credits
reset monthly and do not carry over.
No card required to start. Paid usage is opt-in; no subscription or base fee.

Premium costs $0.003/$0.006/$0.012 a minute for 2/4/8 vCPU.
Its labels are sengi-premium-2-ubuntu-2404, sengi-premium-4-ubuntu-2404
and sengi-premium-8-ubuntu-2404. Basic for value, Premium for speed: Basic
is built to match GitHub's own runners at the lowest price; Premium runs on
bare metal high-performance CPUs with local NVMe, for speed (measured
against GitHub's runner at https://sengi.run/benchmarks). Ask the user
which they want before editing. Existing sengi-standard labels continue to
work as Premium.

プロンプトの全文を見る(英語) または curl -s https://sengi.run/agent.md

02 / CI の請求額同じ実行時間・公開価格で比較

CI はいくらになる?
どのサイズでも、より安く。

代表的なジョブの時間と、月に何回動くかを入れてください。同じ分数で、Sengi、GitHub、ほかのマネージドランナーを比べます。

Sengi のランナー

Sengi Premium 4 で月20,000分(実行時間)

$120.00/ 月

同じ実行時間で、GitHub なら $240.00。 1ドルで使える分数は2倍。

Linux ランナーCPU / メモリ費用の比較月額
この見積もりの計算方法

1ジョブの分数 × 月のジョブ数 × 各社が公開している、同じ vCPU とメモリの1分あたりの価格です。価格は 2026年11月7日 に各社の料金ページで確認したもので、実行時間はどこでも同じと仮定しています。どの会社も(Sengi も)無料枠やプラン料金を引く前の公開価格です。公開ベンチマークでは、Premium 4 vCPU は12件中11件のオープンソースプロジェクトで、GitHub の 4 vCPU ランナーより速く終わりました。詳しい比較や先月の GitHub の請求額からの計算もあります(英語)。

03 / 2つのランナークラス分単位の課金・サブスクリプションなし

速さなら Premium。
安さなら Basic。

どのサイズも、新しい Ubuntu 24.04 x64 の仮想マシンです。クラスはジョブごとに、同じリポジトリの中で選べます。runs-on にラベルを1つ書くだけです。

サイズ / ラベルvCPUメモリディスク1分あたり1時間あたり
PREMIUMベアメタルのゲーミング向けCPU。12件中11件のオープンソースプロジェクトで GitHub のランナーより高速。
Premium 2sengi-premium-2-ubuntu-240428 GB75 GiB$0.003$0.18
Premium 4sengi-premium-4-ubuntu-2404416 GB150 GiB$0.006$0.36
Premium 8sengi-premium-8-ubuntu-2404832 GB200 GiB$0.012$0.72
BASICいちばん安い分単価。GitHub と同じ 2・4・8 vCPU のサイズ。
Basic 2sengi-basic-2-ubuntu-240428 GB75 GiB$0.001$0.06
Basic 4sengi-basic-4-ubuntu-2404416 GB150 GiB$0.002$0.12
Basic 8sengi-basic-8-ubuntu-2404832 GB200 GiB$0.004$0.24
毎月3,000クレジット無料。
毎月、私たちの負担で。

Basic でも Premium でも使えます。Basic なら 2 vCPU で3,000分、4 vCPU で1,500分、8 vCPU で750分、または自由な組み合わせ。Premium の1分は、同じサイズの Basic の1分の3倍のクレジットを使います。始めるのにカードは要りません。サブスクリプションや基本料金はなく、起動と後片付けの時間は課金されません。

SENGI PREMIUM

私たちの速いマシン。

待ち時間を減らして、
ビルドを増やす。

ベアメタルのゲーミング向けCPUと、ジョブごとに新しい VM。1分 $0.003 から。

Sengi Premium を見る(英語)
1.59×fd の CI ジョブでの速さ
12件中11件GitHub より速かったプロジェクト
$0.0032 vCPU の1分あたり

fd(cargo build --release, then cargo test):Premium 4 vCPU と GitHub の 4 vCPU ランナーの比較。記録した実行の中央値で、2026年11月17日 時点。すべての実行はベンチマークのページにリンクしています。

04 / 含まれるもの利用者側で動かすものはありません

ジョブが動く環境。
キャッシュ込みで。

actions/cache、setup 系アクションのキャッシュ、Docker の type=gha レイヤーキャッシュは、Sengi 自身のキャッシュから配信されます。最初の実行でキャッシュがたまり、その後の実行は温まった状態から始まります。

マシン

  • ジョブごとに新しい Ubuntu 24.04 x64 の仮想マシン
  • 2・4・8 vCPU、メモリは 8・16・32 GB
  • Docker、Docker Compose、Buildx をインストール済み
  • setup-node と setup-python が前提とするツールキャッシュ

ワークフロー

  • ステップ、トリガー、シークレットは GitHub Actions のまま
  • ジョブのステータスとログは、これまでどおり GitHub に
  • サービスコンテナ、アーティファクト、OIDC トークン
  • Actions キャッシュと Docker レイヤーキャッシュ(Sengi が配信)
.github/workflows/ci.ymlキャッシュの設定なし
runs-on: sengi-basic-2-ubuntu-2404
steps:
  - uses: actions/checkout@v4
  - uses: actions/setup-node@v4
    with:
      node-version: "22"
      cache: npm      # Sengi が配信
  - run: npm ci
  - run: npm test

最初の実行でキャッシュがたまり、以降の実行では変わっていないレイヤーを再ビルドせずに復元します。Docker レイヤーキャッシュのガイド(英語) →

05 / 最初の実行の前に

よくある
質問。

Sengi ヘルプ(英語) ↗︎
Sengi とは?

Linux x64 のマネージド GitHub Actions ランナーです。クラスは2つあり、速さの Premium は 2 vCPU で1分 $0.003 から、いちばん安い Basic は1分 $0.001 からです。ワークフローはそのままで、ジョブのログも GitHub に残ります。ランナーのマシンは Sengi が管理します。

ワークフローはどうやって切り替えますか?

Sengi の GitHub App をインストールしてリポジトリを接続し、runs-on: ubuntu-latest を runs-on: sengi-premium-4-ubuntu-2404 などの Sengi のラベルに変えてマージします。Sengi のプロンプトをコーディングエージェントに貼れば、プルリクエストを作ってくれます。

Basic と Premium の違いは?

Premium はベアメタルのゲーミング向けCPUで動き、1分 $0.003 からです。公開ベンチマークでは、Premium 4 vCPU は12件中11件のオープンソースプロジェクトで GitHub の 4 vCPU ランナーより速く終わり、fd では最大 1.59× 速くなりました。Basic はいちばん安い分単価で、2 vCPU で $0.001 からです。クラスはジョブごとに、同じリポジトリの中で選べます。

使えるサイズは?

2・4・8 vCPU、メモリ 8・16・32 GB で、Basic と Premium のどちらでも使えます。すべてのラベルはサイズの表にあります。

料金はいくらですか?

Sengi Premium は 2・4・8 vCPU で1分あたり $0.003 / $0.006 / $0.012、Sengi Basic は $0.001 / $0.002 / $0.004 です。サブスクリプションや基本料金はありません。請求は米ドル建てです。

無料でどれくらい使えますか?

すべてのアカウントに毎月3,000クレジットが無料で付き、Basic でも Premium でも使えます。Basic なら 2 vCPU で3,000分、4 vCPU で1,500分、8 vCPU で750分、または自由な組み合わせです。Premium の1分は、同じサイズの Basic の1分の3倍のクレジットを使います。カードは要りません。

クレジットカードは必要ですか?

始めるのにカードは要りません。毎月の無料分を超えて使いたくなったら、有料利用を有効にしてください。

何がインストールされていますか?

Ubuntu 24.04 に、Docker、Docker Compose、Buildx と、setup-node と setup-python が参照するツールキャッシュが入っています。ジョブの中から見える環境はガイド(英語)にまとめています。

キャッシュは使えますか?

使えます。actions/cache、setup 系アクションのキャッシュ、Docker の type=gha レイヤーキャッシュが、ワークフローを変えずに動きます。

無料クレジットを使い切ったらどうなりますか?

実行中のジョブは追加料金なしで最後まで動きます。新しい無料ジョブは、有料利用を有効にするか、翌月のクレジットが付くまで待ちます。有料利用は自分で有効にするまで始まりません。

ワークフローを書き直す必要はありますか?

ありません。対象の Ubuntu 24.04 x64 のジョブで runs-on のラベルを変えるだけです。ステップ、トリガー、シークレットは GitHub Actions のままです。

GitHub のランナーに戻せますか?

戻せます。ワークフローは GitHub Actions のままなので、1回の revert で戻ります。

ワークフローはそのまま。CI はもっと早く。

次のビルドは Premium で。
1分 $0.003 から。

カードなしで始める