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

make default build faster, but optimise in ci

Louis Beaumont053451e995c3
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index a5cead391..7d7aa0244 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -183,6 +183,10 @@ jobs:
- name: Build CLI
shell: bash
+ env:
+ CARGO_PROFILE_RELEASE_LTO: "true"
+ CARGO_PROFILE_RELEASE_OPT_LEVEL: "z"
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "1"
run: |
if [[ "${{ matrix.platform }}" == "macos-latest" ]]; then
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
@@ -232,6 +236,10 @@ jobs:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# https://tauri.app/v1/guides/distribution/sign-macos
CI: true
+ # optimize for release
+ CARGO_PROFILE_RELEASE_LTO: true
+ CARGO_PROFILE_RELEASE_OPT_LEVEL: z
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1
with:
args: ${{ matrix.tauri-args }}
projectPath: "./screenpipe-app-tauri"
diff --git a/Cargo.toml b/Cargo.toml
index ac1c44685..b938f7e31 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -48,9 +48,3 @@ git = "https://github.com/microsoft/vcpkg"
rev = "2023.04.15"
dynamic = true
-[profile.release]
-lto = true
-
-[profile.dev-release]
-inherits = "release"
-lto = false
diff --git a/release-app.yml b/release-app.yml
new file mode 100644
index 000000000..243af67fb
--- /dev/null
+++ b/release-app.yml
@@ -0,0 +1,10 @@
+name: Build
+uses: tauri-apps/tauri-action@v0
+env:
+ CARGO_PROFILE_RELEASE_LTO: true
+ CARGO_PROFILE_RELEASE_OPT_LEVEL: z
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1
+with:
+ args: ${{ matrix.tauri-args }}
+ projectPath: "./screenpipe-app-tauri"
+ tauriScript: bunx tauri -v
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 3c611b965..c936c4e1a 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.6.4"
+version = "0.6.5"
description = ""
authors = ["you"]
license = ""