Repository navigation
45 lines (45 loc) · 1.58 KB
/
Copy pathwindows-debug.yml
File metadata and controls
45 lines (45 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: windows-debug
# Run chosen hub or client tests on a Windows runner with their output (the Windows port, docs/e2e/MATRIX.md). By hand only.
on:
workflow_dispatch:
inputs:
crate:
description: host or gpui
default: host
filter:
description: nextest filter expression, e.g. test(/^agents::tests::lost::/)
required: true
os:
description: the runner (windows-latest, macos-latest, ubuntu-latest)
default: windows-latest
capture:
description: "no: --no-capture (one test at a time, output as it comes); yes: in parallel as CI runs them"
default: "no"
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: never
CARGO_PROFILE_DEV_DEBUG: 0
RUST_BACKTRACE: short
permissions:
contents: read
jobs:
run:
runs-on: ${{ inputs.os }}
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: native/${{ inputs.crate }}
shared-key: windows-${{ inputs.crate }}
save-if: false
- uses: taiki-e/install-action@nextest
- name: tests
working-directory: native/${{ inputs.crate }}
shell: bash
env:
FILTER: ${{ inputs.filter }}
run: |
cargo build --locked --bins
if [ "${{ inputs.capture }}" = yes ]; then cargo nextest run --locked --no-fail-fast --success-output final --failure-output final -E "$FILTER"; else cargo nextest run --locked --no-fail-fast --no-capture -E "$FILTER"; fi