ci(mantis): fetch ffmpeg proof tools directly · openclaw/openclaw@799bd8a
obviyus
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -338,10 +338,14 @@ jobs:
|
338 | 338 | test -f scripts/e2e/telegram-user-driver.py |
339 | 339 | media_tools="${RUNNER_TEMP}/mantis-media-tools" |
340 | 340 | install -d "$media_tools" |
341 | | - printf '%s\n' '{"private":true}' > "$media_tools/package.json" |
342 | | - pnpm --dir "$media_tools" --config.dangerouslyAllowAllBuilds=true add ffmpeg-static@5.2.0 ffprobe-static@3.1.0 |
343 | | - sudo install -m 0755 "$media_tools/node_modules/ffmpeg-static/ffmpeg" /usr/local/bin/ffmpeg |
344 | | - sudo install -m 0755 "$media_tools/node_modules/ffprobe-static/bin/linux/x64/ffprobe" /usr/local/bin/ffprobe |
| 341 | + curl --fail --location --retry 3 --retry-delay 2 \ |
| 342 | + --connect-timeout 15 --max-time 180 \ |
| 343 | + https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz \ |
| 344 | + --output "$media_tools/ffmpeg.tar.xz" |
| 345 | + tar -xJf "$media_tools/ffmpeg.tar.xz" -C "$media_tools" |
| 346 | + bin_dir="$(find "$media_tools" -type d -path '*/bin' | head -n 1)" |
| 347 | + sudo install -m 0755 "$bin_dir/ffmpeg" /usr/local/bin/ffmpeg |
| 348 | + sudo install -m 0755 "$bin_dir/ffprobe" /usr/local/bin/ffprobe |
345 | 349 | ffmpeg -version >/dev/null |
346 | 350 | ffprobe -version >/dev/null |
347 | 351 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -43,8 +43,8 @@ describe("Mantis Telegram Desktop proof workflow", () => {
|
43 | 43 | it("installs local proof tools before the Codex agent runs", () => { |
44 | 44 | const install = workflowStep("Install local proof tools"); |
45 | 45 | expect(install.run).toContain("test -f scripts/e2e/telegram-user-driver.py"); |
46 | | -expect(install.run).toContain("ffmpeg-static@5.2.0"); |
47 | | -expect(install.run).toContain("ffprobe-static@3.1.0"); |
| 46 | +expect(install.run).toContain("BtbN/FFmpeg-Builds"); |
| 47 | +expect(install.run).toContain("ffmpeg-master-latest-linux64-gpl.tar.xz"); |
48 | 48 | expect(install.run).toContain("/usr/local/bin/ffmpeg"); |
49 | 49 | expect(install.run).toContain("/usr/local/bin/ffprobe"); |
50 | 50 | expect(install.run).not.toContain("apt-get install"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。