Skip to content

[ENG-760] ci: optimize CI with persistent local cache#25

Merged
pycckuu merged 1 commit intomainfrom
ENG-760/pycckuu/optimize-ci-local-cache
Mar 4, 2026
Merged

[ENG-760] ci: optimize CI with persistent local cache#25
pycckuu merged 1 commit intomainfrom
ENG-760/pycckuu/optimize-ci-local-cache

Conversation

@pycckuu
Copy link
Contributor

@pycckuu pycckuu commented Mar 4, 2026

Summary

  • Remove branch push trigger from docker-publish.yml — Docker images only published on version tag pushes (v*)
  • Switch Docker buildx cache from type=gha to type=local with rotation on self-hosted runners
  • Replace per-run isolated Rust paths with persistent /tmp/ci-cache/ paths (removes need for Swatinem/rust-cache)
  • Disable sccache GHA backend (SCCACHE_GHA_ENABLED: "false") to use local storage
  • Remove cargo-chef from Dockerfile (simplified 2-stage build)

Test plan

  • Verify CI workflows pass on this PR
  • Confirm Docker build check uses local cache
  • Confirm Rust build/test/lint jobs use persistent local paths
  • Verify Dockerfile builds correctly without cargo-chef

@pycckuu pycckuu force-pushed the ENG-760/pycckuu/optimize-ci-local-cache branch from 29075e2 to 4a95c38 Compare March 4, 2026 13:11
- Switch to persistent local cache isolated per runner using ${{ runner.name }}
- Remove Swatinem/rust-cache (not needed with persistent local paths)
- Disable sccache GHA backend (SCCACHE_GHA_ENABLED=false)
- Switch Docker buildx cache from type=gha to type=local
- Remove branch push trigger from docker-publish (keep only tag pushes)
- Remove cargo-chef from Dockerfile (simplified 2-stage build)
@pycckuu pycckuu force-pushed the ENG-760/pycckuu/optimize-ci-local-cache branch from 4a95c38 to 61332b1 Compare March 4, 2026 13:20
@pycckuu pycckuu merged commit e1b14ed into main Mar 4, 2026
5 checks passed
@pycckuu pycckuu deleted the ENG-760/pycckuu/optimize-ci-local-cache branch March 4, 2026 14:10
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