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
chore: add windows cli build + remove job flag
Louis Beaumontfdbea15a8d8d
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex f99436d9b..72e874228 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -213,7 +213,6 @@ jobs:CARGO_PROFILE_RELEASE_STRIP: ${{ matrix.tauri-args == '--target x86_64-pc-windows-msvc' && 'symbols' || 'none' }}CARGO_PROFILE_RELEASE_PANIC: ${{ matrix.tauri-args == '--target x86_64-pc-windows-msvc' && 'abort' || 'unwind' }}CARGO_PROFILE_RELEASE_INCREMENTAL: ${{ matrix.tauri-args == '--target x86_64-pc-windows-msvc' && 'false' || 'true' }}- CARGO_BUILD_JOBS: "12"run: |if [[ "${{ matrix.platform }}" == "macos-latest" ]]; thenexport PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"@@ -253,7 +252,6 @@ jobs:APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}# https://tauri.app/v1/guides/distribution/sign-macosCI: true- CARGO_BUILD_JOBS: "12"# Optimize for build speed on WindowsCARGO_PROFILE_RELEASE_LTO: ${{ matrix.tauri-args == '--target x86_64-pc-windows-msvc' && 'thin' || 'false' }}CARGO_PROFILE_RELEASE_OPT_LEVEL: ${{ matrix.tauri-args == '--target x86_64-pc-windows-msvc' && '2' || '3' }}diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex 4f56f5386..3f335564f 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -101,6 +101,78 @@ jobs:name: screenpipe-macos-${{ matrix.target }}path: screenpipe-*.tar.gz+ build-windows:+ runs-on: self-hosted+ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Set up Rust+ uses: actions-rust-lang/setup-rust-toolchain@v1+ with:+ toolchain: stable+ override: true+ target: x86_64-pc-windows-msvc+ cache: true+ rustflags: ""++ - name: Set up MSVC+ uses: ilammy/msvc-dev-cmd@v1++ - name: Install LLVM and Clang+ uses: KyleMayes/install-llvm-action@v2+ with:+ version: "10.0"++ - uses: actions/cache@v4+ with:+ path: |+ ~/.cargo/registry/index/+ ~/.cargo/registry/cache/+ ~/.cargo/git/db/+ key: windows-cargo-${{ hashFiles('**/Cargo.lock') }}++ - name: Build CLI+ env:+ CARGO_PROFILE_RELEASE_STRIP: "symbols"+ CARGO_PROFILE_RELEASE_PANIC: "abort"+ CARGO_PROFILE_RELEASE_INCREMENTAL: "false"+ RUSTFLAGS: "-C target-feature=+crt-static -C link-arg=/LTCG"+ run: |+ cargo build --release --target x86_64-pc-windows-msvc++ - name: Set version+ shell: bash+ run: |+ if [[ $GITHUB_REF == refs/tags/* ]]; then+ VERSION=${GITHUB_REF#refs/tags/v}+ else+ VERSION=$(git ls-remote --tags --refs --sort="version:refname" | tail -n1 | sed 's/.*\///' | sed 's/^v//')+ fi+ if [[ -z "$VERSION" ]]; then+ VERSION="0.0.0"+ fi+ echo "VERSION=$VERSION" >> $GITHUB_ENV+ echo "Set version to: $VERSION"++ - name: Create deployment package+ shell: bash+ run: |+ mkdir -p screenpipe-${{ env.VERSION }}-x86_64-pc-windows-msvc/bin+ cp target/x86_64-pc-windows-msvc/release/screenpipe.exe screenpipe-${{ env.VERSION }}-x86_64-pc-windows-msvc/bin/+ 7z a screenpipe-${{ env.VERSION }}-x86_64-pc-windows-msvc.zip ./screenpipe-${{ env.VERSION }}-x86_64-pc-windows-msvc/*++ - name: Calculate SHA256+ shell: bash+ run: |+ echo "WIN_SHA256=$(certutil -hashfile screenpipe-${{ env.VERSION }}-x86_64-pc-windows-msvc.zip SHA256 | findstr /v "hash")" >> $GITHUB_ENV++ - name: Upload Artifact+ uses: actions/upload-artifact@v4+ with:+ name: screenpipe-windows+ path: screenpipe-*.zip+update-homebrew:needs: build-macosruns-on: macos-latest@@ -130,7 +202,7 @@ jobs:release:runs-on: ubuntu-latest- needs: [build-macos, update-homebrew]+ needs: [build-macos, build-windows, update-homebrew]steps:- name: Checkout codeuses: actions/checkout@v4@@ -148,7 +220,7 @@ jobs:echo "VERSION=$VERSION" >> $GITHUB_ENVecho "Set version to: $VERSION"- - name: Download macOS Artifacts+ - name: Download Artifactsuses: actions/download-artifact@v4with:path: artifacts@@ -168,3 +240,10 @@ jobs:echo "Warning: $file not found"fidone+ for file in artifacts/screenpipe-windows/screenpipe-*.zip; do+ if [ -f "$file" ]; then+ gh release upload v${{ env.VERSION }} "$file" --clobber+ else+ echo "Warning: $file not found"+ fi+ done