Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: speed up build

Louis Beaumont8ce258024002
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 5130ef406..542d0e831 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -229,14 +229,14 @@ jobs:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# https://tauri.app/v1/guides/distribution/sign-macos
CI: true
- # TODO: too slow
- # CARGO_PROFILE_RELEASE_LTO: true
- # CARGO_PROFILE_RELEASE_OPT_LEVEL: z
- # CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1
- # reduce build size on linux
- CARGO_PROFILE_RELEASE_LTO: ${{ matrix.platform == 'ubuntu-22.04' && 'true' || 'false' }}
- CARGO_PROFILE_RELEASE_OPT_LEVEL: ${{ matrix.platform == 'ubuntu-22.04' && 'z' || '3' }}
- CARGO_PROFILE_RELEASE_CODEGEN_UNITS: ${{ matrix.platform == 'ubuntu-22.04' && '1' || '16' }}
+ # Optimize for build speed on Windows
+ CARGO_PROFILE_RELEASE_LTO: ${{ matrix.platform == 'windows-latest' && 'thin' || matrix.platform == 'ubuntu-22.04' && 'true' || 'false' }}
+ CARGO_PROFILE_RELEASE_OPT_LEVEL: ${{ matrix.platform == 'windows-latest' && '2' || matrix.platform == 'ubuntu-22.04' && 'z' || '3' }}
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS: ${{ matrix.platform == 'windows-latest' && '16' || matrix.platform == 'ubuntu-22.04' && '1' || '16' }}
+ # Enable incremental compilation for Windows
+ CARGO_INCREMENTAL: ${{ matrix.platform == 'windows-latest' && '1' || '0' }}
+ # Limit parallel jobs on Windows
+ CARGO_BUILD_JOBS: ${{ matrix.platform == 'windows-latest' && '4' || '' }}
with:
args: ${{ matrix.tauri-args }}
projectPath: "./screenpipe-app-tauri"