Skip to content

ci: optimize GitHub workflows with caching, concurrency, timeouts, and permissions #41

Merged
WiseMrMusa merged 11 commits intomainfrom
rt-001
Feb 18, 2026
Merged

ci: optimize GitHub workflows with caching, concurrency, timeouts, and permissions #41
WiseMrMusa merged 11 commits intomainfrom
rt-001

Conversation

@WiseMrMusa
Copy link
Contributor

Closes #40

…d permissions

- Add Swatinem/rust-cache@v2 to all Rust build workflows for
  intelligent caching of ~/.cargo and target/
- Add concurrency groups with cancel-in-progress to all workflows
  so duplicate runs on the same branch/PR are automatically cancelled
- Add timeout-minutes to all jobs that were missing them
- Add least-privilege permissions (contents: read) at workflow level,
  with job-level overrides only where needed
- Replace cargo install with taiki-e/install-action for cargo-llvm-cov
  and cargo-deny (pre-built binaries, much faster)
- Simplify dependency-audit.yml by removing manual cache management
- Enable cache-on-failure for Miri builds (slow builds benefit from
  partial caches)
- Tighten docs.yml permissions: docs job only needs read, not write
This commit splits fmt, clippy and typos into three different jobs
It includes paths where changes there don't trigger a new action
@WiseMrMusa WiseMrMusa requested a review from a team as a code owner February 18, 2026 06:30
@github-actions
Copy link

Coverage after merging rt-001 into main will be

64.29%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
template_crate/src
   lib.rs66.67%100%80%64.29%33–36, 38–40, 42–44

Copy link
Collaborator

@maksimryndin maksimryndin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good but there some fixes are needed

@github-actions
Copy link

Coverage after merging rt-001 into main will be

64.29%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
template_crate/src
   lib.rs66.67%100%80%64.29%33–36, 38–40, 42–44

@github-actions
Copy link

Coverage after merging rt-001 into main will be

64.29%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
template_crate/src
   lib.rs66.67%100%80%64.29%33–36, 38–40, 42–44

Copy link
Collaborator

@maksimryndin maksimryndin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! thanks @WiseMrMusa ! 👍

@WiseMrMusa WiseMrMusa merged commit 79a46a7 into main Feb 18, 2026
7 checks passed
@WiseMrMusa WiseMrMusa deleted the rt-001 branch February 18, 2026 19:27
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.

Introduce caching and concurrency for workflows

2 participants