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: add self-hosted macOS 26 runner to production release workflow
Louis Beaumontba8bed9ac4e8
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex adcabc0ed..7f0c3b361 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.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@@ -493,6 +528,19 @@ jobs:echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENVecho "Setting MACOSX_DEPLOYMENT_TARGET=10.15 for std::filesystem support"+ - 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:@@ -541,7 +589,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: 3