Skip to content

Speed up CI - #13

Merged
Menelion merged 2 commits into
masterfrom
ci-speedup
Oct 19, 2026
Merged

Menelion merged 2 commits into
masterfrom
ci-speedup

Conversation

@Menelion

Copy link
Copy Markdown
Contributor

What and why

CI takes about two and a half minutes, and part of that is repeated work.

  • NuGet cache: actions/cache keeps ~/.nuget/packages between runs, keyed on the project files and global.json, so restore no longer downloads every package each time. A change to a project file misses the exact key, falls back to the newest cache and downloads only what changed.
  • Format check: dotnet format gets --no-restore, since the step before it has just restored.

The format check stays whole: the build does not enforce code style (EnforceCodeStyleInBuild is off), so it still catches what the build would not.

Validation

  • dotnet format --verify-no-changes --no-restore passes locally.
  • The first CI run fills the cache; a rerun shows the time saved.

@Menelion
Menelion merged commit a03dee9 into master Oct 19, 2026
1 check passed
@Menelion
Menelion deleted the ci-speedup branch October 19, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant