RUNNER_OSとは?
RUNNER_OSは、jobを実行するrunnerのオペレーティングシステムです - Linux、Windows、またはmacOS。
RUNNER_OSは、複数のオペレーティングシステムにまたがって実行されるmatrix buildに不可欠で、stepがOS固有のコマンドやcacheパスを選べるようにします。
例
OSごとにcacheパスを選びます。
yaml
if: ${{ runner.os == 'Windows' }}コストに関する注意
macOSのrunnerはLinuxのおよそ10倍、Windowsはおよそ2倍のコストがかかります。OS横断のmatrixを無駄なく保ち、重いLinuxのlegはLatchkeyのような安価なmanaged runnerで実行しましょう。
重要なポイント
- RUNNER_OSはLinux、Windows、またはmacOSです。
- OS横断のmatrix buildに欠かせません。
- macOS/Windowsの分はLinuxよりはるかに高くつきます。
関連ガイド
What Is RUNNER_ARCH?RUNNER_ARCH is the CPU architecture of a GitHub Actions runner, such as X64 or ARM64. Learn how to use it in…
What Is macOS Runner Cost? Why Apple CI Is the Priciest MinutemacOS runners are the most expensive CI option, roughly ten times Linux per minute. Learn why, where the cost…