Repository navigation
perf(desktop-gpui): AVX2 YUYV camera preview to BGRA #574
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows Target Discovery | |
| on: | |
| pull_request: | |
| paths: | |
| - "crates/scap-targets/**" | |
| - "crates/recording/src/sources/screen_capture/**" | |
| - "apps/cli/src/targets.rs" | |
| - "apps/cli/src/record.rs" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - ".github/workflows/windows-targets.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: windows-targets-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| windows-targets: | |
| name: Native Windows window discovery | |
| runs-on: windows-2022 | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 | |
| with: | |
| fetch-depth: 2 | |
| - uses: dtolnay/rust-toolchain@688313b0823df1393bcebb1b4add0438a6d36884 | |
| with: | |
| components: clippy | |
| - uses: ./.github/actions/setup-rust-cache | |
| with: | |
| target: x86_64-pc-windows-msvc | |
| - run: cargo test --locked -p scap-targets --lib --test windows_targets -- --nocapture | |
| - name: Compare discovery against the PR base | |
| if: github.event_name == 'pull_request' | |
| shell: pwsh | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| run: | | |
| $source = "crates/scap-targets/src/platform/win.rs" | |
| $patchedSource = [System.IO.File]::ReadAllBytes($source) | |
| try { | |
| git cat-file -e "$($env:BASE_SHA)^{commit}" 2>$null | |
| if ($LASTEXITCODE -ne 0) { git fetch --no-tags --depth=1 origin $env:BASE_SHA } | |
| $baseline = git show "$($env:BASE_SHA):$source" | |
| if ($LASTEXITCODE -ne 0) { throw "Could not load base Windows implementation" } | |
| $baseline | Set-Content -Encoding utf8 $source | |
| cargo test --locked -p scap-targets --test windows_targets -- --nocapture | |
| $baselineExit = $LASTEXITCODE | |
| "Base implementation discovery test exit code: $baselineExit (0 means this fixture already passed on the base)." | Add-Content $env:GITHUB_STEP_SUMMARY | |
| } finally { | |
| [System.IO.File]::WriteAllBytes($source, $patchedSource) | |
| } | |
| exit 0 | |
| - run: cargo clippy --locked -p scap-targets --all-targets -- -D warnings |