The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
Add the phone targets to the pinned toolchain, and keep FFmpeg once built
Jareeraf326db841cc
diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.ymlindex 7985a3f9..2eed18de 100644--- a/.github/workflows/mobile.yml+++ b/.github/workflows/mobile.yml@@ -34,9 +34,12 @@ jobs:timeout-minutes: 90steps:- uses: actions/checkout@v7+ # The engine pins its toolchain in rust-toolchain.toml, so the phone's+ # standard library is added to that toolchain from inside engine/,+ # where the pin applies.- uses: dtolnay/rust-toolchain@stable- with:- targets: aarch64-linux-android+ - run: rustup target add aarch64-linux-android+ working-directory: engine- uses: taiki-e/cache-cargo-install-action@v2with:tool: cargo-apk@@ -48,15 +51,24 @@ jobs:- name: System librariesrun: sudo apt-get update && sudo apt-get install -y cmake libclang-dev+ # Restored and saved as two steps rather than one, so the FFmpeg+ # build is kept the moment it finishes, whatever happens to the Rust+ # build after it.- name: FFmpeg for Android (cached)id: ffmpeg- uses: actions/cache@v4+ uses: actions/cache/restore@v4with:path: engine/vendor/ffmpeg/aarch64-linux-androidkey: ffmpeg-aarch64-linux-android-${{ hashFiles('engine/scripts/ffmpeg-mobile.sh') }}- name: FFmpeg for Androidif: steps.ffmpeg.outputs.cache-hit != 'true'run: engine/scripts/ffmpeg-mobile.sh aarch64-linux-android+ - name: FFmpeg for Android (save)+ if: steps.ffmpeg.outputs.cache-hit != 'true'+ uses: actions/cache/save@v4+ with:+ path: engine/vendor/ffmpeg/aarch64-linux-android+ key: ${{ steps.ffmpeg.outputs.cache-primary-key }}- name: sherpa-onnx for Androidrun: engine/scripts/sherpa-mobile.sh aarch64-linux-android@@ -100,21 +112,33 @@ jobs:timeout-minutes: 90steps:- uses: actions/checkout@v7+ # The engine pins its toolchain in rust-toolchain.toml, so the phone's+ # standard library is added to that toolchain from inside engine/,+ # where the pin applies.- uses: dtolnay/rust-toolchain@stable- with:- targets: aarch64-apple-ios+ - run: rustup target add aarch64-apple-ios+ working-directory: engine- run: brew install cmake+ # Restored and saved as two steps rather than one, so the FFmpeg+ # build is kept the moment it finishes, whatever happens to the Rust+ # build after it.- name: FFmpeg for iOS (cached)id: ffmpeg- uses: actions/cache@v4+ uses: actions/cache/restore@v4with:path: engine/vendor/ffmpeg/aarch64-apple-ioskey: ffmpeg-aarch64-apple-ios-${{ hashFiles('engine/scripts/ffmpeg-mobile.sh') }}- name: FFmpeg for iOSif: steps.ffmpeg.outputs.cache-hit != 'true'run: engine/scripts/ffmpeg-mobile.sh aarch64-apple-ios+ - name: FFmpeg for iOS (save)+ if: steps.ffmpeg.outputs.cache-hit != 'true'+ uses: actions/cache/save@v4+ with:+ path: engine/vendor/ffmpeg/aarch64-apple-ios+ key: ${{ steps.ffmpeg.outputs.cache-primary-key }}- name: sherpa-onnx for iOSrun: engine/scripts/sherpa-mobile.sh aarch64-apple-ios