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 code quality workflow cross-platform issues

Louis Beaumont12cf9b488414
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 77a2a2243..e1b662b90 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -26,7 +26,12 @@ jobs:
run: cargo fmt --all -- --check
- name: Run Clippy
- run: cargo clippy --all-targets --all-features -- -W clippy::all
+ run: |
+ # Skip packages with macOS-specific Objective-C code that won't compile on Linux
+ cargo clippy --workspace \
+ --exclude screenpipe-vision \
+ --exclude screenpipe-audio \
+ --all-targets -- -W clippy::all
optimize:
name: Dependency & Performance Checks
@@ -39,6 +44,7 @@ jobs:
- uses: actions/checkout@v4
- name: Check for unused dependencies
+ if: matrix.os != 'windows-latest'
uses: bnjbvr/cargo-machete@main
- name: Install dependencies
@@ -46,17 +52,21 @@ jobs:
run: .github/scripts/install_dependencies.sh
- name: Install cargo-udeps
+ if: matrix.os == 'macos-latest'
run: |
rustup install nightly
cargo +nightly install cargo-udeps --locked
- name: Run cargo-udeps
+ if: matrix.os == 'macos-latest'
run: cargo +nightly udeps
- name: Install cargo-bloat
+ if: matrix.os == 'macos-latest'
run: cargo install cargo-bloat
- name: Analyze binary size
+ if: matrix.os == 'macos-latest'
run: cargo bloat --release
- name: Install cargo-audit