已合并
feat(build): 支持 deb/rpm 及 all 格式安装包构建 #98
feat(build): 支持 deb/rpm 及 all 格式安装包构建 #98
已合并
LiuZonggu创建于 11 天前
LiuZonggu成员
11 天前

描述

为内置 ops-ras 算子包增加 deb/rpm 打包入口,可通过 bash build.sh --pkg --pkg-type=deb|rpm|all 选择格式;默认仍为 run,all 一次生成 run、deb 和 rpm 三种格式。

  • PACKAGE_TYPE 传递给 cann-cmake 公共打包配置,在 Shell 和 CMake 层校验格式与构建模式;deb/rpm/all 仅支持内置、非静态算子包。
  • 构建前清理所选格式的旧 deb/rpm 产物,构建成功后从构建根目录收集到 build_out/,忽略 CPack 暂存副本及其他仓库产物;构建失败或缺少预期格式时返回错误。
  • 补充 RPM 元数据,并对不支持 PACKAGE_TYPE 的旧版离线 cann-cmake 缓存给出明确错误提示。

关联的Issue

关联 Issue #32:https://gitcode.com/cann/ops-ras/issues/32

测试

  • 测试通过,覆盖默认/显式格式、非法参数组合、产物清理与收集、缺失产物以及打包失败路径。
  • 提交说明记录已在 Ubuntu 22.04 aarch64 上验证 deb、rpm、all 和默认 run 构建;本次提交 PR 时复跑上述回归与静态检查,未重新执行完整构建或安装验证。

文档更新

更新 docs/zh/install/build.mddocs/en/install/build.md,补充打包命令

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 LiuZonggu 的贡献)
LLiuZonggu成员
11 天前 创建了 pull request,commit 963d9bff
CANN-robotCANN-robot成员
11 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
11 天前 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/ops-ras yue-ma, 陈兴宇 (2/2) 陈兴宇, yue-ma (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

LiuZonggu, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robot成员
11 天前 评论:

CLA Signature Pass

LiuZonggu, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
LLiuZonggu成员
11 天前 修改了pull request 的描述
此处折叠了45条消息 查看更多
yue-ma成员
8 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8 天前 添加了label:approved
chenxingyu18成员
8 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
8 天前 添加了label:lgtm
CANN-robotCANN-robot成员
8 天前 合入了pull request