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: reduce build size on linux

Louis Beaumontc26c1173c7c8
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 69c5a9737..84aa36193 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -224,6 +224,10 @@ jobs:
# 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' }}
with:
args: ${{ matrix.tauri-args }}
projectPath: "./screenpipe-app-tauri"
diff --git a/Cargo.toml b/Cargo.toml
index a7aa1bda8..af50ace35 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,13 +49,3 @@ git = "https://github.com/microsoft/vcpkg"
rev = "2023.04.15"
dynamic = true
-[profile.release]
-# default settings
-lto = false
-
-# add release-lto profile for people that want high performance
-[profile.release-lto]
-inherits = "release"
-lto = true
-opt-level = "z"
-codegen-units = 1
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index d06f00b03..77e5ce649 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.7.2"
+version = "0.7.3"
description = ""
authors = ["you"]
license = ""