ci(mantis): fetch ffmpeg proof tools directly

This commit is contained in:
Ayaan Zaidi
2026-05-11 13:18:29 +05:30
parent cb3d5c0c61
commit 799bd8a23b
2 changed files with 10 additions and 6 deletions

View File

@@ -338,10 +338,14 @@ jobs:
test -f scripts/e2e/telegram-user-driver.py test -f scripts/e2e/telegram-user-driver.py
media_tools="${RUNNER_TEMP}/mantis-media-tools" media_tools="${RUNNER_TEMP}/mantis-media-tools"
install -d "$media_tools" install -d "$media_tools"
printf '%s\n' '{"private":true}' > "$media_tools/package.json" curl --fail --location --retry 3 --retry-delay 2 \
pnpm --dir "$media_tools" --config.dangerouslyAllowAllBuilds=true add ffmpeg-static@5.2.0 ffprobe-static@3.1.0 --connect-timeout 15 --max-time 180 \
sudo install -m 0755 "$media_tools/node_modules/ffmpeg-static/ffmpeg" /usr/local/bin/ffmpeg https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz \
sudo install -m 0755 "$media_tools/node_modules/ffprobe-static/bin/linux/x64/ffprobe" /usr/local/bin/ffprobe --output "$media_tools/ffmpeg.tar.xz"
tar -xJf "$media_tools/ffmpeg.tar.xz" -C "$media_tools"
bin_dir="$(find "$media_tools" -type d -path '*/bin' | head -n 1)"
sudo install -m 0755 "$bin_dir/ffmpeg" /usr/local/bin/ffmpeg
sudo install -m 0755 "$bin_dir/ffprobe" /usr/local/bin/ffprobe
ffmpeg -version >/dev/null ffmpeg -version >/dev/null
ffprobe -version >/dev/null ffprobe -version >/dev/null

View File

@@ -43,8 +43,8 @@ describe("Mantis Telegram Desktop proof workflow", () => {
it("installs local proof tools before the Codex agent runs", () => { it("installs local proof tools before the Codex agent runs", () => {
const install = workflowStep("Install local proof tools"); const install = workflowStep("Install local proof tools");
expect(install.run).toContain("test -f scripts/e2e/telegram-user-driver.py"); expect(install.run).toContain("test -f scripts/e2e/telegram-user-driver.py");
expect(install.run).toContain("ffmpeg-static@5.2.0"); expect(install.run).toContain("BtbN/FFmpeg-Builds");
expect(install.run).toContain("ffprobe-static@3.1.0"); expect(install.run).toContain("ffmpeg-master-latest-linux64-gpl.tar.xz");
expect(install.run).toContain("/usr/local/bin/ffmpeg"); expect(install.run).toContain("/usr/local/bin/ffmpeg");
expect(install.run).toContain("/usr/local/bin/ffprobe"); expect(install.run).toContain("/usr/local/bin/ffprobe");
expect(install.run).not.toContain("apt-get install"); expect(install.run).not.toContain("apt-get install");