Skip to content

Add Debian 12 packaging pipeline with size-optimized .deb builds#2

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/create-pipeline-for-debian-package
Draft

Add Debian 12 packaging pipeline with size-optimized .deb builds#2
Copilot wants to merge 4 commits intomasterfrom
copilot/create-pipeline-for-debian-package

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 14, 2026

CI pipeline and build script to produce distributable AliSQL .deb packages targeting Debian 12 (Bookworm), with aggressive size reduction to keep packages under ~300 MB vs 2+ GB unoptimized.

Workflow (.github/workflows/build-debian12-packages.yml)

  • Runs in debian:12 container on push/PR to main/master/develop, plus manual dispatch
  • Manual trigger exposes build type selector (Release / RelWithDebInfo)
  • Uploads .deb artifact with 30-day retention
  • Scoped to permissions: contents: read

Build script (packaging/build-debian12-package.sh)

  • Out-of-source CMake build with INSTALL_LAYOUT=DEB and standard FHS paths
  • Size reduction strategies:
    • Release build type (no debug info): ~1–1.5 GB saved
    • strip --strip-unneeded on ELF binaries: ~200 MB
    • Exclude mysql-test suite: ~500 MB
    • Remove static .a archives: ~100–200 MB
  • Supports --install-deps for standalone use and env var overrides (BUILD_TYPE, JOBS, PACKAGE_NAME)

Docs (packaging/DEBIAN12_BUILD.md)

  • Quick start, CI usage, size budget breakdown, configurable knobs

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Create pipeline for generating Debian 12 distributable package Add Debian 12 packaging pipeline with size-optimized .deb builds Feb 14, 2026
Copilot AI requested a review from fkpwolf February 14, 2026 01:39
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.

2 participants