|
| 1 | +name: cliopen win longpath |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [cliopen/win-longpath] |
| 5 | +permissions: |
| 6 | + contents: read |
| 7 | +env: |
| 8 | + HYPERFRAMES_NO_TELEMETRY: "1" |
| 9 | +jobs: |
| 10 | + repro: |
| 11 | + runs-on: windows-latest |
| 12 | + timeout-minutes: 40 |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 |
| 15 | + - uses: ./.github/actions/install-ffmpeg-windows |
| 16 | + - name: Set FFMPEG_BIN |
| 17 | + shell: pwsh |
| 18 | + run: | |
| 19 | + $path = (Get-Command ffmpeg.exe).Source |
| 20 | + "FFMPEG_BIN=$path" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 21 | + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 |
| 22 | + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 |
| 23 | + with: |
| 24 | + node-version: 22 |
| 25 | + - shell: pwsh |
| 26 | + run: bun install --frozen-lockfile --linker=hoisted |
| 27 | + - shell: pwsh |
| 28 | + run: | |
| 29 | + bun run --filter '@hyperframes/{parsers,lint,studio-server}' build |
| 30 | + bun run --cwd packages/core build |
| 31 | + bun run --filter @hyperframes/player build |
| 32 | + bun run --filter @hyperframes/studio build |
| 33 | + bun run --filter @hyperframes/inspector build |
| 34 | + bun run --filter @hyperframes/cli build |
| 35 | + - name: long project paths |
| 36 | + shell: pwsh |
| 37 | + env: |
| 38 | + HYPERFRAMES_SKIP_SKILLS: "1" |
| 39 | + run: | |
| 40 | + $cli = "$env:GITHUB_WORKSPACE\packages\cli\dist\cli.js" |
| 41 | + Write-Host "LongPathsEnabled: $((Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem').LongPathsEnabled)" |
| 42 | + foreach ($target in 120, 200, 235, 250, 270) { |
| 43 | + $base = "$env:RUNNER_TEMP\lp$target" |
| 44 | + $seg = "a" * 40 |
| 45 | + $dir = $base |
| 46 | + while (("$dir\proj").Length -lt $target) { $dir = "$dir\$seg" } |
| 47 | + $dir = "$dir\proj" |
| 48 | + Write-Host "=== project path length $($dir.Length)" |
| 49 | + $pre = "\\?\" + $dir |
| 50 | + try { New-Item -ItemType Directory -Force -Path $pre | Out-Null } catch { Write-Host "mkdir failed: $_"; continue } |
| 51 | + Set-Location $base |
| 52 | + $init = node $cli init $dir --example blank --non-interactive --skip-skills 2>&1 | Select-Object -Last 3 |
| 53 | + Write-Host "init: $($init -join ' | ')" |
| 54 | + Set-Location -LiteralPath "\\?\$dir" -ErrorAction SilentlyContinue |
| 55 | + $snap = node $cli snapshot $dir --at 1 --describe false 2>&1 | Select-Object -Last 4 |
| 56 | + Write-Host "snapshot exit $LASTEXITCODE : $($snap -join ' | ')" |
| 57 | + $chk = node $cli check $dir 2>&1 | Select-Object -Last 3 |
| 58 | + Write-Host "check exit $LASTEXITCODE : $($chk -join ' | ')" |
| 59 | + } |
0 commit comments