Rust のビルド時間はプログラム言語の中では割と長い方に入ると思われますが、incremental build をうまく使うことでビルド時間を短縮する事が出来ます。ローカル開発時には、とくに何も考えなくても勝手に incremental build になりますが CI で incremental build するためには一工夫が必要になります。この記事ではそのテクニックを紹介します。 TL;DR actions/cache と git-restore-mtime コマンドを組み合わせると CI で incremental build が出来ます。 さらに release build で incremental ビルドしたい場合は incremental flag を明示的に on に上書きが必要です。 Rust プロジェクトのキャッシュ設定 Github Actions で action
