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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
ci: self-hosted macOS 26 runner with smart Apple Intelligence detection
Louis Beaumontfda40d2c47f5
diff --git a/.github/workflows/release-app-beta.yml b/.github/workflows/release-app-beta.ymlindex bfec3f33d..d8aafa916 100644--- a/.github/workflows/release-app-beta.yml+++ b/.github/workflows/release-app-beta.yml@@ -26,6 +26,7 @@ jobs:should_release: ${{ steps.check.outputs.should_release }}should_publish: ${{ steps.check.outputs.should_publish }}should_test: ${{ steps.check.outputs.should_test }}+ macos26_runner: ${{ steps.check-runner.outputs.macos26_runner }}steps:- uses: actions/checkout@v4with:@@ -57,6 +58,22 @@ jobs:echo "should_test=${{ github.event.inputs.needs_testing }}" >> $GITHUB_OUTPUTfi+ - name: Check self-hosted macOS 26 runner availability+ id: check-runner+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ run: |+ # Check if any self-hosted runner with macos-26 label is online+ RUNNER_STATUS=$(gh api repos/${{ github.repository }}/actions/runners \+ --jq '.runners[] | select(.labels[].name == "macos-26") | .status' 2>/dev/null || echo "offline")+ if [ "$RUNNER_STATUS" = "online" ]; then+ echo "macos26_runner=macos-26" >> $GITHUB_OUTPUT+ echo "✅ Self-hosted macOS 26 runner is online"+ else+ echo "macos26_runner=macos-latest" >> $GITHUB_OUTPUT+ echo "ℹ️ Self-hosted macOS 26 runner offline — falling back to macos-latest"+ fi+draft:needs: [check_commit]if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'@@ -90,7 +107,9 @@ jobs:fail-fast: falsematrix:include:- - platform: "macos-latest"+ # Self-hosted macOS 26 runner for Apple Silicon (has Xcode 26 for Apple Intelligence)+ # Dynamically falls back to macos-latest if self-hosted runner is offline+ - platform: ${{ needs.check_commit.outputs.macos26_runner || 'macos-latest' }}args: "--target aarch64-apple-darwin --features metal"target: aarch64-apple-darwintauri-args: "--target aarch64-apple-darwin --features official-build"@@ -112,8 +131,24 @@ jobs:# tauri-args: ""# os_type: "linux"- runs-on: ${{ matrix.platform }}+ runs-on: ${{ matrix.platform == 'macos-26' && fromJSON('["self-hosted", "macos-26"]') || matrix.platform }}+ timeout-minutes: 120steps:+ - name: Detect Xcode version and set Apple Intelligence feature+ if: matrix.os_type == 'macos'+ id: detect-xcode+ shell: bash+ run: |+ XCODE_MAJOR=$(xcodebuild -version 2>/dev/null | head -1 | grep -o '[0-9]*' | head -1 || echo "0")+ echo "Xcode major version: $XCODE_MAJOR"+ if [ "$XCODE_MAJOR" -ge 26 ]; then+ echo "has_apple_intelligence=true" >> $GITHUB_OUTPUT+ echo "✅ Xcode $XCODE_MAJOR detected — Apple Intelligence feature will be enabled"+ else+ echo "has_apple_intelligence=false" >> $GITHUB_OUTPUT+ echo "ℹ️ Xcode $XCODE_MAJOR — Apple Intelligence feature skipped (needs Xcode 26+)"+ fi+- name: Enable Git long paths on Windowsif: matrix.os_type == 'windows'shell: powershell@@ -443,7 +478,12 @@ jobs:export CXXFLAGS="-mcpu=apple-m1 -U__ARM_FEATURE_MATMUL_INT8"fifi- cargo build --release -p screenpipe-server ${{ matrix.args }}+ EXTRA_FEATURES=""+ if [[ "${{ steps.detect-xcode.outputs.has_apple_intelligence }}" == "true" ]]; then+ EXTRA_FEATURES="--features apple-intelligence"+ echo "🧠 Building with Apple Intelligence support"+ fi+ cargo build --release -p screenpipe-server ${{ matrix.args }} $EXTRA_FEATURES- name: Build CLI on Windowsif: matrix.os_type == 'windows'@@ -521,6 +561,19 @@ jobs:shell: bashrun: cp apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json apps/screenpipe-app-tauri/src-tauri/tauri.conf.json+ - name: Compute Tauri build args+ id: tauri-args+ shell: bash+ run: |+ ARGS="${{ matrix.tauri-args }}"+ if [[ "${{ steps.detect-xcode.outputs.has_apple_intelligence }}" == "true" ]]; then+ # Append apple-intelligence to existing --features flag+ ARGS=$(echo "$ARGS" | sed 's/--features \([^ ]*\)/--features \1,apple-intelligence/')+ echo "🧠 Tauri build will include Apple Intelligence"+ fi+ echo "args=$ARGS" >> $GITHUB_OUTPUT+ echo "Final tauri args: $ARGS"+- name: Builduses: tauri-apps/[email protected]env:@@ -561,7 +614,7 @@ jobs:LINUXDEPLOY_OUTPUT_VERSION: ${{ matrix.os_type == 'linux' && '1' || '' }}APPIMAGE_EXTRACT_AND_RUN: ${{ matrix.os_type == 'linux' && '1' || '' }}with:- args: ${{ matrix.tauri-args }}+ args: ${{ steps.tauri-args.outputs.args || matrix.tauri-args }}projectPath: "./apps/screenpipe-app-tauri"tauriScript: bunx tauri -vvvretryAttempts: 3diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex b34be2753..08bebabba 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -174,6 +174,9 @@ custom-protocol = ["tauri/custom-protocol"]# Source builds without this flag will show "auto-updates unavailable"official-build = []+# On-device AI via Apple Foundation Models (macOS 26+ / Xcode 26+ only)+apple-intelligence = ["screenpipe-server/apple-intelligence"]+[package.metadata.cargo-machete]ignored = ["tauri-utils"]