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

Louis Beaumontf687a43f4288
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b2bc179bf..8be93c222 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -8,6 +8,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ target:
+ - x86_64-unknown-linux-gnu
+ - aarch64-unknown-linux-gnu
steps:
- name: Checkout code
@@ -23,12 +28,8 @@ jobs:
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- - name: Build for Linux
- run: cross build --release --target x86_64-unknown-linux-gnu
- working-directory: screenpipe
-
- - name: Build for macOS
- run: cross build --release --target x86_64-apple-darwin
+ - name: Build for ${{ matrix.target }}
+ run: cross build --release --target ${{ matrix.target }}
working-directory: screenpipe
- name: Create Release
@@ -42,22 +43,12 @@ jobs:
draft: false
prerelease: false
- - name: Upload Release Asset for Linux
- uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: ${{ secrets.PAT }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: screenpipe/target/x86_64-unknown-linux-gnu/release/screenpipe
- asset_name: screenpipe-linux
- asset_content_type: application/octet-stream
-
- - name: Upload Release Asset for macOS
+ - name: Upload Release Asset for ${{ matrix.target }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: screenpipe/target/x86_64-apple-darwin/release/screenpipe
- asset_name: screenpipe-macos
+ asset_path: screenpipe/target/${{ matrix.target }}/release/screenpipe
+ asset_name: screenpipe-${{ matrix.target }}
asset_content_type: application/octet-stream
diff --git a/Cross.toml b/Cross.toml
index 4f8ee3df4..6fb091c22 100644
--- a/Cross.toml
+++ b/Cross.toml
@@ -1,11 +1,14 @@
[target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
- "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH"
+ "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH",
+ "apt-get install --assume-yes libxcb1-dev"
]
[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
- "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH"
-]
\ No newline at end of file
+ "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH",
+ "apt-get install --assume-yes libxcb1-dev"
+]
+
diff --git a/screenpipe/src/main.rs b/screenpipe/src/main.rs
index 44735a5d1..348be4c44 100644
--- a/screenpipe/src/main.rs
+++ b/screenpipe/src/main.rs
@@ -5,7 +5,7 @@ use std::fs::create_dir_all;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use std::thread::{self, sleep};
-use std::time::{Duration, Instant};
+use std::time::Duration;
use xcap::image::{ImageBuffer, Rgba};
use xcap::Monitor;
const DISPLAY: &str = r"