Skip to content

ci(build): Overhaul CI workflows, optimize Docker builds, and improve dependency management#666

Merged
awwaawwa merged 40 commits intoPDFMathTranslate:mainfrom
awwaawwa:main
Feb 22, 2025
Merged

ci(build): Overhaul CI workflows, optimize Docker builds, and improve dependency management#666
awwaawwa merged 40 commits intoPDFMathTranslate:mainfrom
awwaawwa:main

Conversation

@awwaawwa
Copy link
Collaborator

This pull request introduces significant updates and optimizations to the project's CI/CD workflows, Docker build processes, and dependency management. Below is a summary of the key changes:

CI/CD Improvements:

  • Enhanced GitHub Actions workflows for Python testing, Docker image publishing, and release management.
  • Updated test matrices to include ubuntu-24.04-arm and multi-Python version testing.
  • Introduced workflow_call triggers for modular workflows.
  • Refactored workflows to optimize caching, metadata handling, and tagging strategies.
  • Added success conditions and permissions for Docker image merge steps.
  • Consolidated and streamlined Docker image publishing workflows for GHCR with multi-platform build support.

Dependency Management:

  • Integrated uv for dependency management in publish workflows.
  • Restricted pymupdf version for compatibility with arm64 Linux wheels.
  • Moved argostranslate to optional dependencies with proper naming adjustments.

Docker Enhancements:

  • Optimized Dockerfile's package installation steps for faster builds.
  • Improved Docker build workflows with GitHub Actions caching and multi-platform support.

New Features:

  • Implemented a local font cache for PDF2ZH.
  • Improved translation cache with enhanced error handling and logging.

Miscellaneous:

  • Updated project dependencies and refined project configuration.
  • Minor workflow and file cleanup for better maintainability.

These updates aim to improve the efficiency, reliability, and maintainability of the CI/CD pipeline, while also addressing dependency and build process optimizations.

@awwaawwa awwaawwa merged commit b0678c9 into PDFMathTranslate:main Feb 22, 2025
7 checks passed
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