From d51f18a2f728496aa866b2947bba0030a3cdb543 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 10 Mar 2026 22:44:54 +0700 Subject: [PATCH] Add workflow step to strip CUDA providers before Linux AppImage build The build script fix only applies to future tags. For v0.1.24 (and any tag built before that fix), we need the workflow itself to remove the CUDA .so files after building the managed runtime. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/desktop-release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index 2be5d4ff0..1d393fed1 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -303,6 +303,11 @@ jobs: - name: Validate managed runtime bundle run: npm run validate:managed-runtime --workspace=@getpaseo/desktop + - name: Remove CUDA/TensorRT providers from onnxruntime + shell: bash + run: | + find packages/desktop/src-tauri/resources/managed-runtime -path '*/onnxruntime-node/bin/*' \( -name '*cuda*' -o -name '*tensorrt*' \) -delete || true + - name: Detect existing GitHub release state if: env.IS_SMOKE_TAG != 'true' env: