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
fix(ci): use pwsh (PowerShell 7) for all Windows build steps (#4777)
Chirag Singhal97238fe1b27d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 051b67e58..e1a56ff24 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -112,7 +112,7 @@ jobs:uses: ilammy/msvc-dev-cmd@v1- name: Ensure 7-Zip is available- shell: powershell+ shell: pwshrun: |# GitHub-hosted windows runners ship 7-Zip pre-installed, so this is# normally a no-op. Only download when it's genuinely missing, anddiff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.ymlindex 12eae2c54..c3c9ec58c 100644--- a/.github/workflows/e2e-test.yml+++ b/.github/workflows/e2e-test.yml@@ -45,7 +45,7 @@ jobs:bun-version: 1.3.10- name: Install Scream on Windows- shell: powershell+ shell: pwshrun: |$ErrorActionPreference = "Stop"$screamUrl = "https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip"@@ -67,7 +67,7 @@ jobs:uses: ilammy/msvc-dev-cmd@v1- name: Sign and Install Scream Driver on Windows- shell: powershell+ shell: pwshrun: |signtool sign /v /fd SHA256 /f ScreamCertificate.pfx Scream\Install\driver\x64\Scream.catImport-Certificate -FilePath ScreamCertificate.cer -CertStoreLocation Cert:\LocalMachine\root@@ -76,7 +76,7 @@ jobs:timeout-minutes: 5- name: Start Windows Audio Service- shell: powershell+ shell: pwshrun: |$service = Get-Service -Name audiosrvif ($service.Status -ne 'Running') {diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 6a675dd7e..0912a61bd 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -202,7 +202,7 @@ jobs:steps:- name: Enable Git long paths on Windowsif: matrix.os_type == 'windows'- shell: powershell+ shell: pwshrun: |Write-Host "Enabling git core.longpaths..."# Use --global instead of --system to avoid permission issues on self-hosted runners@@ -224,7 +224,7 @@ jobs:- name: Shorten target dir to avoid MAX_PATH (Windows)if: matrix.os_type == 'windows'- shell: powershell+ shell: pwshrun: |# vulkan-shaders-gen ExternalProject creates deeply nested paths# that exceed the 260-char Windows MAX_PATH limit when built under@@ -272,21 +272,21 @@ jobs:- name: Install Rust (Windows x64)if: matrix.os_type == 'windows' && matrix.target == 'x86_64-pc-windows-msvc'- shell: powershell+ shell: pwshrun: |Invoke-WebRequest https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe -OutFile rustup-init.exe.\rustup-init.exe -y- name: Install Rust (Windows ARM64 native)if: matrix.os_type == 'windows' && matrix.target == 'aarch64-pc-windows-msvc'- shell: powershell+ shell: pwshrun: |Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -OutFile rustup-init.exe.\rustup-init.exe -y- name: setup rust pathif: matrix.os_type == 'windows'- shell: powershell+ shell: pwshrun: |$env:PATH = "$env:USERPROFILE\.cargo\bin;$env:PATH"echo "$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append@@ -499,7 +499,7 @@ jobs:- name: Install Ninja (ARM64)if: matrix.os_type == 'windows' && matrix.target == 'aarch64-pc-windows-msvc'- shell: powershell+ shell: pwshrun: |# The windows-11-arm runner image pre-installs Ninja at C:\Tools\Ninja# but winget is NOT on PATH by default - so blindly calling@@ -534,7 +534,7 @@ jobs:- name: Verify Windows download supportif: matrix.os_type == 'windows'- shell: powershell+ shell: pwshenv:SKIP_SCREENPIPE_SETUP: truerun: |@@ -807,7 +807,7 @@ jobs:- name: Install CodeSignTool for SSL.com EV signing (Windows)if: matrix.os_type == 'windows'- shell: powershell+ shell: pwshrun: |# 1. CodeSignTool: signs the inner binaries + final NSIS installer# via SSL.com eSigner (called by Tauri's signCommand wrapper).@@ -846,7 +846,7 @@ jobs:- name: Build (Windows)if: matrix.os_type == 'windows'working-directory: apps/screenpipe-app-tauri- shell: powershell+ shell: pwshenv:TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}@@ -903,7 +903,7 @@ jobs:# transient SSL.com CSC API failures (HTML-instead-of-JSON,# "Unexpected character (<) at position 0").if: matrix.os_type == 'windows'- shell: powershell+ shell: pwshenv:ESIGNER_USERNAME: ${{ secrets.ESIGNER_USERNAME }}ESIGNER_PASSWORD: ${{ secrets.ESIGNER_PASSWORD }}@@ -1554,7 +1554,7 @@ jobs:- name: Upload to Cloudflare R2 (Windows)if: matrix.os_type == 'windows'- shell: powershell+ shell: pwshenv:AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}@@ -1641,7 +1641,7 @@ jobs:- name: Upload debug symbols to Sentry (Windows)if: matrix.os_type == 'windows'continue-on-error: true- shell: powershell+ shell: pwshenv:SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}SENTRY_ORG: mediardiff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex 31b373815..e003f228d 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -259,7 +259,7 @@ jobs:.\rustup-init.exe -y- name: Install 7zip- shell: powershell+ shell: pwshrun: |$7zipUrl = "https://7-zip.org/a/7z2301-x64.exe"$7zipInstaller = "7z-installer.exe"@@ -308,7 +308,7 @@ jobs:Get-ChildItem "$extractDir/lib" | ForEach-Object { Write-Host $_.Name }- name: Install wget (Windows)- shell: powershell+ shell: pwshrun: |$wgetDir = "C:\wget"if (-not (Test-Path "$wgetDir\wget.exe")) {@@ -329,7 +329,7 @@ jobs:"OPENBLAS_PATH=${{ github.workspace }}/apps/screenpipe-app-tauri/src-tauri/openblas" | Out-File -FilePath $env:GITHUB_ENV -Append- name: Shorten target dir to avoid MAX_PATH- shell: powershell+ shell: pwshrun: |$targetDir = "target"$shortDir = "C:\t"@@ -370,7 +370,7 @@ jobs:cargo build --release -p screenpipe-engine --bin screenpipe --features directml,redact-onnx-directml --target x86_64-pc-windows-msvc- name: Upload debug symbols to Sentry- shell: powershell+ shell: pwshenv:SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}SENTRY_ORG: mediar@@ -379,7 +379,7 @@ jobs:.\sentry-cli.exe debug-files upload --org $env:SENTRY_ORG --project screenpipe-cli target/x86_64-pc-windows-msvc/release/- name: Install CodeSignTool for SSL.com EV signing (Windows)- shell: powershell+ shell: pwshrun: |# Same SSL.com eSigner cert + tool the desktop app uses (release-app.yml).$cstDest = "$env:RUNNER_TEMP\CodeSignTool"@@ -390,7 +390,7 @@ jobs:Write-Host "CodeSignTool installed at $cstDest"- name: Sign screenpipe.exe with SSL.com EV (Windows)- shell: powershell+ shell: pwshenv:ESIGNER_USERNAME: ${{ secrets.ESIGNER_USERNAME }}ESIGNER_PASSWORD: ${{ secrets.ESIGNER_PASSWORD }}diff --git a/.github/workflows/release-enterprise.yml b/.github/workflows/release-enterprise.ymlindex d66659e7e..52c12807c 100644--- a/.github/workflows/release-enterprise.yml+++ b/.github/workflows/release-enterprise.yml@@ -25,13 +25,13 @@ jobs:- uses: actions/checkout@v4- name: Enable Git long paths on Windows- shell: powershell+ shell: pwshrun: |git config --global core.longpaths trueif ((git config --global --get core.longpaths) -ne "true") { throw "Failed to enable git long paths" }- name: Shorten target dir to avoid MAX_PATH- shell: powershell+ shell: pwshrun: |$targetDir = "apps\screenpipe-app-tauri\src-tauri\target"$shortDir = "C:\t"@@ -67,7 +67,7 @@ jobs:.\rustup-init.exe -y- name: Setup Rust path and MSVC target- shell: powershell+ shell: pwshrun: |$env:PATH = "$env:USERPROFILE\.cargo\bin;$env:PATH"echo "$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append@@ -114,7 +114,7 @@ jobs:uses: ilammy/msvc-dev-cmd@v1- name: Install 7zip- shell: powershell+ shell: pwshrun: |if (-not (Test-Path "C:\Program Files\7-Zip\7z.exe")) {Invoke-WebRequest -Uri "https://7-zip.org/a/7z2301-x64.exe" -OutFile "7z-installer.exe"@@ -124,7 +124,7 @@ jobs:echo "C:\Program Files\7-Zip" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append- name: Install wget (Windows)- shell: powershell+ shell: pwshrun: |$wgetDir = "C:\wget"if (-not (Test-Path "$wgetDir\wget.exe")) {@@ -179,7 +179,7 @@ jobs:run: cp apps/screenpipe-app-tauri/src-tauri/tauri.enterprise.conf.json apps/screenpipe-app-tauri/src-tauri/tauri.conf.json- name: Install CodeSignTool for binary signing- shell: powershell+ shell: pwshrun: |$cstDest = "$env:RUNNER_TEMP\CodeSignTool"Write-Host "Downloading CodeSignTool..."@@ -225,7 +225,7 @@ jobs:# backoff logic against transient SSL.com / CSC API failures# (the "Unexpected character (<) at position 0" HTML-instead-of-JSON# symptom that took out enterprise build 25196389570 on 2026-05-01).- shell: powershell+ shell: pwshenv:ESIGNER_USERNAME: ${{ secrets.ESIGNER_USERNAME }}ESIGNER_PASSWORD: ${{ secrets.ESIGNER_PASSWORD }}@@ -261,7 +261,7 @@ jobs:}- name: Create .intunewin and upload to R2- shell: powershell+ shell: pwshenv:AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}diff --git a/.github/workflows/test-signing.yml b/.github/workflows/test-signing.ymlindex 4e8c333d3..15e60ce5a 100644--- a/.github/workflows/test-signing.yml+++ b/.github/workflows/test-signing.yml@@ -14,7 +14,7 @@ jobs:timeout-minutes: 15steps:- name: Create dummy exe- shell: powershell+ shell: pwshrun: |# Create a minimal valid PE exe to test signing$exePath = "$env:RUNNER_TEMP\test-signing.exe"@@ -23,7 +23,7 @@ jobs:Write-Host "Test exe: $exePath"- name: Sign with SSL.com EV certificate- shell: powershell+ shell: pwshenv:ESIGNER_USERNAME: ${{ secrets.ESIGNER_USERNAME }}ESIGNER_PASSWORD: ${{ secrets.ESIGNER_PASSWORD }}diff --git a/.github/workflows/windows-integration-test.yml b/.github/workflows/windows-integration-test.ymlindex 893c22584..b1f6f4d9e 100644--- a/.github/workflows/windows-integration-test.yml+++ b/.github/workflows/windows-integration-test.yml@@ -58,7 +58,7 @@ jobs:echo "C:\ProgramData\chocolatey\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append- name: Install Scream on Windows- shell: powershell+ shell: pwshrun: |Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream4.0.zipExpand-Archive -Path Scream4.0.zip -DestinationPath Scream@@ -69,7 +69,7 @@ jobs:uses: ilammy/msvc-dev-cmd@v1- name: Sign and Install Scream Driver on Windows- shell: powershell+ shell: pwshrun: |signtool sign /v /fd SHA256 /f ScreamCertificate.pfx Scream\Install\driver\x64\Scream.catImport-Certificate -FilePath ScreamCertificate.cer -CertStoreLocation Cert:\LocalMachine\root@@ -78,7 +78,7 @@ jobs:timeout-minutes: 5- name: Start Windows Audio Service- shell: powershell+ shell: pwshrun: |$service = Get-Service -Name audiosrvif ($service.Status -ne 'Running') {@@ -88,7 +88,7 @@ jobs:}- name: Ensure 7-Zip is available- shell: powershell+ shell: pwshrun: |# GitHub-hosted windows runners ship 7-Zip pre-installed, so this is# normally a no-op. Only download when it's genuinely missing, and