Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: reduce linux release debug output

Richie McIlroy1b36e19cd81b
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 5e3cde3af..9fea622ac 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -257,7 +257,11 @@ jobs:
- name: Build desktop binaries
shell: bash
- run: ./scripts/build-desktop-binaries.sh ${{ matrix.settings.target }}
+ run: |
+ if [[ "$RUNNER_OS" == "Linux" ]]; then
+ export CARGO_PROFILE_RELEASE_DEBUG=0
+ fi
+ ./scripts/build-desktop-binaries.sh ${{ matrix.settings.target }}
# The release profile uses fat LTO + full debuginfo, so the final link
# peaks well above the 16GB stock Linux runner and gets OOM-killed
@@ -280,7 +284,7 @@ jobs:
- name: Build app
working-directory: apps/desktop
- run: pnpm build:tauri --target ${{ matrix.settings.target }} --config src-tauri/tauri.prod.conf.json ${{ runner.os == 'Windows' && '--bundles nsis' || runner.os == 'Linux' && '--bundles deb --verbose' || '' }}
+ run: ${{ runner.os == 'Linux' && 'CARGO_PROFILE_RELEASE_DEBUG=0 ' || '' }}pnpm build:tauri --target ${{ matrix.settings.target }} --config src-tauri/tauri.prod.conf.json ${{ runner.os == 'Windows' && '--bundles nsis' || runner.os == 'Linux' && '--bundles deb --verbose' || '' }}
env:
# https://github.com/tauri-apps/tauri-action/issues/740
CI: false