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(ci): set CMAKE_GENERATOR only on Windows via GITHUB_ENV (empty string broke macOS)

Louis Beaumont2fcb84dd42a0
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index d8449e31b..4bfcb8bf3 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -784,6 +784,12 @@ jobs:
echo "args=$ARGS" >> $GITHUB_OUTPUT
echo "Final tauri args: $ARGS"
+ - name: Set CMAKE_GENERATOR for Windows
+ if: matrix.os_type == 'windows'
+ shell: powershell
+ run: |
+ echo "CMAKE_GENERATOR=Visual Studio 17 2022" >> $env:GITHUB_ENV
+
- name: Build
uses: tauri-apps/[email protected]
env:
@@ -814,8 +820,7 @@ jobs:
CXXFLAGS: ${{ matrix.os_type == 'macos' && (matrix.target == 'aarch64-apple-darwin' && '-mmacosx-version-min=10.15 -mcpu=apple-m1 -U__ARM_FEATURE_MATMUL_INT8' || '-mmacosx-version-min=10.15') || '' }}
CMAKE_C_FLAGS: ${{ matrix.os_type == 'macos' && '-mmacosx-version-min=10.15' || '' }}
CMAKE_CXX_FLAGS: ${{ matrix.os_type == 'macos' && '-mmacosx-version-min=10.15' || '' }}
- # Force correct VS generator on windows-2022 runners (cmake crate defaults to VS 2019)
- CMAKE_GENERATOR: ${{ matrix.os_type == 'windows' && 'Visual Studio 17 2022' || '' }}
+
# Optimize for build speed on Windows
CARGO_PROFILE_RELEASE_LTO: ${{ matrix.os_type == 'windows' && 'thin' || 'false' }}
CARGO_PROFILE_RELEASE_OPT_LEVEL: ${{ matrix.os_type == 'windows' && '2' || '3' }}
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index fd8f40132..97b65594c 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.0.408"
+version = "2.0.409"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""