Skip to content

Commit c05f223

Browse files
committed
debug tests in windows
1 parent fc1804e commit c05f223

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/rust.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-latest, windows-latest, macos-latest]
18-
rust: [stable, nightly]
19-
cargo_features: ['', 'alloc', 'default']
17+
os: [windows-latest]
18+
rust: [stable]
19+
cargo_features: ['']
2020

2121
steps:
2222
- uses: hecrj/setup-rust-action@v2
@@ -50,8 +50,18 @@ jobs:
5050
run: cargo +${{ matrix.rust }} clippy --all-targets --workspace --no-default-features --features "${{ matrix.cargo_features }}"
5151
if: matrix.os == 'ubuntu-latest' && matrix.rust == 'nightly' && matrix.cargo_features == 'default'
5252

53+
- name: Build Test
54+
run: cargo +${{ matrix.rust }} build --tests --no-default-features --features "${{ matrix.cargo_features }}" --all-targets
55+
56+
- name: Archive artifacts
57+
if: matrix.os == 'windows-latest'
58+
uses: actions/upload-artifact@v7
59+
with:
60+
name: built artifacts
61+
path: target/**/*.exe
62+
5363
- name: Test
54-
run: cargo +${{ matrix.rust }} test --no-default-features --features "${{ matrix.cargo_features }}" --all-targets
64+
run: cargo +${{ matrix.rust }} test --no-default-features --features "${{ matrix.cargo_features }}" --all-targets -- --test-threads=1
5565

5666
- name: Minimal versions
5767
# cargo-minimal-versions won't detach the path deps if we're using dev dependencies

0 commit comments

Comments
 (0)