Skip to content

Add deb package when building#23

Merged
zerx-lab merged 4 commits intozerx-lab:mainfrom
BLumia:fix-deb-build-ci-481273996731769133
May 5, 2026
Merged

Add deb package when building#23
zerx-lab merged 4 commits intozerx-lab:mainfrom
BLumia:fix-deb-build-ci-481273996731769133

Conversation

@BLumia
Copy link
Copy Markdown

@BLumia BLumia commented May 4, 2026

Description

为现有 CI workflow 的 Linux 构建添加了 deb 打包构建。

Testing

请见:

注:

为了 agent 调试/查看CI日志方便,把工作流变成 PR 中也会触发了(PR 触发时会跳过 publish_release 来避免创建 Release),以及因为是 AI 直接参与修复的,所以是多个 commit。若要保持提交历史整洁可以按需 squash,若不希望 PR 也触发 action 也可随意直接调整此 PR 的内容。

BLumia and others added 4 commits May 4, 2026 20:55
This commit addresses the failures in the GitHub Action workflow when
attempting to build .deb packages for the 'oss' channel.

Changes:
1. Update `script/linux/install_build_deps` to include `fakeroot`, which
   is required for `dpkg-deb -b`.
2. Modify `script/linux/bundle_deb` to conditionally skip repository
   configuration for the 'oss' channel. This prevents errors when trying
   to append upstream-specific repository templates that are not
   applicable or present for the open-source fork.

Co-authored-by: BLumia <[email protected]>
Summary of changes:
- Added `libdbus-1-dev` and `fakeroot` to `script/linux/install_build_deps`. `libdbus-1-dev` was missing, causing `libdbus-sys` to fail compilation in CI. `fakeroot` is needed for `.deb` packaging.
- Modified `script/linux/bundle_deb` to conditionally skip repository configuration when building for the 'oss' channel, avoiding errors with missing or inapplicable upstream templates.
- Updated `openwarp_release.yml` to trigger on pull requests and added a condition to skip the final release publishing step for PR builds.

Co-authored-by: BLumia <[email protected]>
- Reverted changes in `script/linux/bundle_deb` and `script/linux/install_build_deps`.
- Moved `libdbus-1-dev` and `fakeroot` installation directly to the `.github/workflows/openwarp_release.yml` workflow.
- This addresses the review feedback by avoiding modifications to shared scripts while still fixing the CI build failures.

Co-authored-by: BLumia <[email protected]>
@BLumia BLumia mentioned this pull request May 4, 2026
2 tasks
@zerx-lab zerx-lab merged commit 4296de3 into zerx-lab:main May 5, 2026
5 checks passed
@BLumia BLumia deleted the fix-deb-build-ci-481273996731769133 branch May 5, 2026 01:21
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