action cache とは何か?
action cache は、CI action が workflow 実行の間でディレクトリを保存・復元するために使うキー付きのファイルストアです。実行時にキャッシュキーを計算し、一致するエントリがあれば復元し、キーが新しければ新しいエントリを保存します。依存関係の再ダウンロードや再 build を避けるための標準的な方法です。
なぜ重要か
依存関係のインストールやコンパイル済みの artifact は実行ごとに同一であることが多く、再取得は minutes を無駄にします。action cache を使えば、キーが一致したときに job がそれらを数秒で復元できます。マネージド runner プラットフォームは、このキャッシュを高速なローカルまたはリージョンのストレージで支えることで、復元時間をさらに短縮できます。
関連ガイド
What Is a Cache Key?A cache key is the identifier that determines which cached entry a lookup retrieves, typically derived from t…
What Is Cache Scope?Cache scope defines the boundary within which a cache entry is shared and reusable, such as per branch, per r…
What Is a Tool Cache?A tool cache is a directory of preinstalled language and tool versions on a runner that setup actions can use…