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): scope AVX2/LTCG flags to x86_64 only — fix ARM64 Windows build

louis030195b6f90acb817a
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 56d286401..339847f0d 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -803,15 +803,16 @@ jobs:
CARGO_PROFILE_RELEASE_STRIP: none
CARGO_PROFILE_RELEASE_PANIC: abort
CARGO_PROFILE_RELEASE_INCREMENTAL: "false"
- RUSTFLAGS: -C link-arg=/LTCG
+ RUSTFLAGS: ${{ matrix.target == 'x86_64-pc-windows-msvc' && '-C link-arg=/LTCG' || '' }}
# Cap MSVC codegen at AVX2 — prevents LTCG from auto-vectorizing C deps
# (e.g. sqlite-vec) to AVX-512 on CI Xeon runners. Lunar Lake and other
# consumer CPUs lack AVX-512, causing STATUS_ILLEGAL_INSTRUCTION (0xc000001d).
- CFLAGS: /arch:AVX2
- CXXFLAGS: /arch:AVX2
+ # Only set for x86_64 — clang on ARM64 doesn't understand /arch:AVX2.
+ CFLAGS: ${{ matrix.target == 'x86_64-pc-windows-msvc' && '/arch:AVX2' || '' }}
+ CXXFLAGS: ${{ matrix.target == 'x86_64-pc-windows-msvc' && '/arch:AVX2' || '' }}
# Fix whisper.cpp crash on newer CPUs (Lunar Lake, etc.) that lack AVX-512
# GGML_NATIVE=ON compiles with -march=native, causing illegal instruction on CPUs without AVX-512
- CMAKE_ARGS: -DGGML_NATIVE=OFF -DGGML_AVX512=OFF -DGGML_AVX512_VBMI=OFF -DGGML_AVX512_VNNI=OFF -DGGML_AVX512_BF16=OFF
+ CMAKE_ARGS: ${{ matrix.target == 'x86_64-pc-windows-msvc' && '-DGGML_NATIVE=OFF -DGGML_AVX512=OFF -DGGML_AVX512_VBMI=OFF -DGGML_AVX512_VNNI=OFF -DGGML_AVX512_BF16=OFF' || '-DGGML_NATIVE=OFF' }}
OPENBLAS_PATH: ${{ github.workspace }}/apps/screenpipe-app-tauri/src-tauri/openblas
run: bunx tauri build --verbose ${{ matrix.tauri-args }}
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 88dba0f38..21e5d9fc4 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.2.289"
+version = "2.2.290"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""