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 Beaumont0636b3d016c2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1a6ade3fd..b2bc179bf 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -20,15 +20,15 @@ jobs:
profile: minimal
override: true
- - name: Add macOS target
- run: rustup target add x86_64-apple-darwin
+ - name: Install cross
+ run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build for Linux
- run: cargo build --release --target x86_64-unknown-linux-gnu
+ run: cross build --release --target x86_64-unknown-linux-gnu
working-directory: screenpipe
- name: Build for macOS
- run: cargo build --release --target x86_64-apple-darwin
+ run: cross build --release --target x86_64-apple-darwin
working-directory: screenpipe
- name: Create Release
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 000000000..28dc66c7b
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,4 @@
+[workspace]
+members = ["screenpipe"]
+exclude = []
+resolver = "2"
\ No newline at end of file
diff --git a/Cross.toml b/Cross.toml
new file mode 100644
index 000000000..4f8ee3df4
--- /dev/null
+++ b/Cross.toml
@@ -0,0 +1,11 @@
+[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"
+]
+
+[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