Skip to content

CI (macOS): web/dist 构建失败 — 缺少 build.zig.zon 且 dx 依赖 OpenSSL 3 #28

@reiase

Description

@reiase

在 macOS Runner 上的 CI job 59258211264 失败,详见 Actions 运行: https://github.com/DeepLink-org/probing/actions/runs/20634621471/job/59258211264

失败摘要

  • Failed to read build.zig.zon (using latest): ENOENT: no such file or directory, open 'build.zig.zon'
  • dyld: Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib
    Referenced from: /Users/runner/.cargo/bin/dx
    导致 make: *** [web/dist] Error 134

关键日志摘录

  • "Failed to read build.zig.zon (using latest): Error: ENOENT: no such file or directory, open 'build.zig.zon'"
  • "dyld[6255]: Library not loaded: /usr/local/opt/openssl@3/lib/libssl.3.dylib"
  • "Abort trap: 6 dx build --release"
  • make 报错目标:web/dist

可能原因与建议修复

  1. build.zig.zon 文件缺失或路径不对 — 确认文件已提交或在 CI 中生成。
  2. macOS Runner 上缺少 OpenSSL@3 — 在 workflow 中通过 Homebrew 安装并 link openssl@3, 或改用 Ubuntu runner。

参考 workflow(使用 job 的 ref): https://github.com/DeepLink-org/probing/blob/ba15ed178b28c7d242a0956613bc9454ee28744a/.github/workflows/test.yml

期望

  • CI 在 macOS runner 上能成功完成 web/dist 目标,或改为在受支持的 runner 上构建并在 CI 中添加缺失 runtime 依赖的安装步骤。

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions