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

ci: fix windows_sys core dep and linux e2e openblas setup (#2771)

Ayush Singhfd6b4517048e
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index d53085776..d1659c1ff 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -200,6 +200,25 @@ jobs:
pulseaudio pulseaudio-utils libpipewire-0.3-dev
libgbm-dev libwayland-dev libegl-dev libopenblas-dev mold
+ - name: Normalize OpenBLAS paths for antirez-asr-sys
+ run: |
+ sudo mkdir -p /usr/lib/x86_64-linux-gnu/openblas/lib
+ sudo mkdir -p /usr/lib/x86_64-linux-gnu/openblas/include
+ sudo ln -sf /usr/lib/x86_64-linux-gnu/libopenblas.so /usr/lib/x86_64-linux-gnu/openblas/lib/liblibopenblas.so
+ sudo ln -sf /usr/lib/x86_64-linux-gnu/libopenblas.a /usr/lib/x86_64-linux-gnu/openblas/lib/liblibopenblas.a
+ CBLAS_HEADER="$(find /usr/include /usr/lib -name cblas.h 2>/dev/null | head -n1 || true)"
+ if [ -z "$CBLAS_HEADER" ]; then
+ CBLAS_HEADER="$(dpkg -L libopenblas-dev | grep -m1 '/cblas\.h$' || true)"
+ fi
+ if [ -n "$CBLAS_HEADER" ]; then
+ CBLAS_DIR="$(dirname "$CBLAS_HEADER")"
+ sudo ln -sf "$CBLAS_HEADER" /usr/include/cblas.h
+ sudo ln -sf "$CBLAS_HEADER" /usr/lib/x86_64-linux-gnu/openblas/include/cblas.h
+ echo "C_INCLUDE_PATH=$CBLAS_DIR:/usr/include:/usr/lib/x86_64-linux-gnu/openblas/include:${C_INCLUDE_PATH:-}" >> "$GITHUB_ENV"
+ echo "CFLAGS=-I$CBLAS_DIR -I/usr/include -I/usr/lib/x86_64-linux-gnu/openblas/include ${CFLAGS:-}" >> "$GITHUB_ENV"
+ fi
+ echo "OPENBLAS_PATH=/usr/lib/x86_64-linux-gnu/openblas" >> "$GITHUB_ENV"
+
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
@@ -248,7 +267,7 @@ jobs:
- name: Build
uses: tauri-apps/[email protected]
env:
- OPENBLAS_PATH: /usr
+ OPENBLAS_PATH: ${{ env.OPENBLAS_PATH }}
with:
args: "--no-sign --debug --no-bundle -- --features e2e"
projectPath: "./apps/screenpipe-app-tauri"
diff --git a/crates/screenpipe-audio/examples/bench_parakeet.rs b/crates/screenpipe-audio/examples/bench_parakeet.rs
index 3f5a73dbe..7f79de7e2 100644
--- a/crates/screenpipe-audio/examples/bench_parakeet.rs
+++ b/crates/screenpipe-audio/examples/bench_parakeet.rs
@@ -13,6 +13,7 @@ use screenpipe_core::Language;
use std::sync::Arc;
use std::time::Instant;
+#[cfg(target_os = "windows")]
fn get_rss_mb() -> f64 {
#[repr(C)]
#[allow(non_snake_case)]
@@ -43,6 +44,11 @@ fn get_rss_mb() -> f64 {
}
}
+#[cfg(not(target_os = "windows"))]
+fn get_rss_mb() -> f64 {
+ 0.0
+}
+
#[tokio::main]
async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt()
diff --git a/crates/screenpipe-audio/examples/bench_quality2.rs b/crates/screenpipe-audio/examples/bench_quality2.rs
index bba49b7ca..00c1971bc 100644
--- a/crates/screenpipe-audio/examples/bench_quality2.rs
+++ b/crates/screenpipe-audio/examples/bench_quality2.rs
@@ -379,6 +379,7 @@ struct TestCase {
reference: &'static str,
}
+#[cfg(target_os = "windows")]
fn get_rss_mb() -> f64 {
#[repr(C)]
#[allow(non_snake_case)]
@@ -409,6 +410,11 @@ fn get_rss_mb() -> f64 {
}
}
+#[cfg(not(target_os = "windows"))]
+fn get_rss_mb() -> f64 {
+ 0.0
+}
+
#[tokio::main]
async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt()
diff --git a/crates/screenpipe-connect/Cargo.toml b/crates/screenpipe-connect/Cargo.toml
index 36d86a7d3..ece1d187e 100644
--- a/crates/screenpipe-connect/Cargo.toml
+++ b/crates/screenpipe-connect/Cargo.toml
@@ -22,7 +22,6 @@ russh-sftp = "2.1"
dirs = "6"
chrono = "0.4"
async-trait = "0.1"
-base64 = "0.22"
once_cell = "1"
lettre = { version = "0.11", default-features = false, features = ["smtp-transport", "tokio1-rustls-tls", "builder"] }
mdns-sd = "0.13"