Skip to content

Speed up CI: Skip unnecessary build steps, optimize caching etc#5098

Merged
shamoon merged 26 commits into
devfrom
feature/cache-try-2
Mar 30, 2025
Merged

Speed up CI: Skip unnecessary build steps, optimize caching etc#5098
shamoon merged 26 commits into
devfrom
feature/cache-try-2

Conversation

@shamoon
Copy link
Copy Markdown
Collaborator

@shamoon shamoon commented Mar 30, 2025

Proposed change

This PR significantly improves CI performance and simplifies the Docker build process, cuts Docker build time from ~25 minutes to ~4 minutes 🏎️

Highlights:

  • Skips pnpm install and next build inside Docker when building in CI — reuses pre-built .next directory instead
  • Adds graceful fallback for local builds to do usual next build
  • More effective use of caching

Closes # (issue)

Type of change

  • New service widget
  • Bug fix (non-breaking change which fixes an issue)
  • New feature or enhancement (non-breaking change which adds functionality)
  • Documentation only
  • Other (please explain)

Checklist:

  • If applicable, I have added corresponding documentation changes.
  • If applicable, I have reviewed the feature / enhancement and / or service widget guidelines.
  • I have checked that all code style checks pass using pre-commit hooks and linting checks.
  • If applicable, I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.

@shamoon shamoon merged commit 954ab54 into dev Mar 30, 2025
@shamoon shamoon deleted the feature/cache-try-2 branch March 30, 2025 15:52
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant