GitHub Actions Minutes とは?
Actions minutes は、GitHub がホスト型 runner を課金する方法です。ジョブの実時間に OS 係数を掛けたもので、プランに対してカウントされます。
GitHub ホスト型 runner は、ある一点を超えると無料ではありません。分単位で計測され、計算にはひねりがあります。OS が異なる乗数を持つため、すべての分が同じコストではないのです。
概要
1 分は、GitHub ホスト型 runner でのジョブ実行時間の 1 分です。各アカウントはプライベートリポジトリで毎月の無料枠を取得します。それを超えると、分は課金されます。
カウント方法
分はジョブごとに切り上げられ、OS 係数が掛けられます。Linux は 1x、Windows は 2x、macOS は 10x でカウントされます。したがって、10 分の macOS ジョブはクォータの 100 分を消費します。larger runner はさらに高くつきます。
- Linux: 1x 乗数。
- Windows: 2x 乗数。
- macOS: 10x 乗数。
使用量の制御
caching、並行性のキャンセル、path フィルター、matrix の削減はすべて分の使用量を削減します。パブリックリポジトリは通常、標準の runner で分を消費しません。
重要な理由
minutes は CI コストが急速に積み上がる場所で、特に Windows と macOS です。Latchkey のマネージド runner は同じ workflow をより低い実効分単位コストで実行するため、YAML を変更せずに重いパイプラインが安くなります。
関連する概念
分の使用量は、runner の選択、matrix のサイズ、caching、並行性の設定によって決まります。
重要なポイント
- minutes は GitHub ホスト型 runner のジョブ時間を課金します。
- OS 乗数: Linux 1x、Windows 2x、macOS 10x。
- caching、並行性、フィルターが使用量とコストを削減します。
関連ガイド
What Is a GitHub Actions Runner?A runner is the machine that executes a GitHub Actions job. It can be GitHub-hosted, self-hosted, or a manage…
What Is a Larger Runner in GitHub Actions?A larger runner is a GitHub-hosted runner with more CPU, memory, or a GPU than standard runners, used for hea…
What Is actions/cache in GitHub Actions?actions/cache stores and restores files like dependencies between runs using a key, speeding up workflows by…
What Is a Concurrency Group in GitHub Actions?A concurrency group limits a workflow to one in-progress run per key, automatically canceling or queuing olde…