File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Rust (Windows + nextest)
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+ RUST_BACKTRACE : 1
12+
13+ jobs :
14+ test-windows :
15+ name : Build & test on Windows (MSVC)
16+ runs-on : windows-latest
17+
18+ defaults :
19+ run :
20+ shell : pwsh
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+
26+ - name : Set up Rust (stable)
27+ uses : dtolnay/rust-toolchain@stable
28+ # On windows-latest the default host is already x86_64-pc-windows-msvc.
29+
30+ - name : Cache cargo registry + build
31+ uses : actions/cache@v4
32+ with :
33+ path : |
34+ ~\.cargo\registry
35+ ~\.cargo\git
36+ target
37+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
38+ restore-keys : |
39+ ${{ runner.os }}-cargo-
40+
41+ - name : Install cargo-nextest
42+ uses : taiki-e/install-action@v2
43+ with :
44+ tool : nextest
45+
46+ - name : Build (debug, all targets)
47+ run : cargo build --locked --all-targets --verbose
48+
49+ - name : Test (cargo-nextest)
50+ run : cargo nextest run --locked --workspace --all-features --no-fail-fast --failure-output=immediate-final
You can’t perform that action at this time.
0 commit comments