Skip to content

Commit cfb9bea

Browse files
committed
Go back to cross compiling and only run size tests
- Use platform-default Windows toolchain with 32-bit target again. - Remove the "cargo check default features" step. - Filter the tests so only those with "size" in their name are run. - Rename job from to `test-32bit-windows-size`.
1 parent cb45d89 commit cfb9bea

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -309,22 +309,23 @@ jobs:
309309
GIX_TEST_IGNORE_ARCHIVES: '1'
310310
run: cargo nextest run --workspace --no-fail-fast
311311

312-
test-32bit-windows:
312+
test-32bit-windows-size:
313313
runs-on: windows-latest
314314

315+
env:
316+
TARGET: i686-pc-windows-msvc
317+
315318
steps:
316319
- uses: actions/checkout@v4
317-
- uses: dtolnay/rust-toolchain@master
320+
- uses: dtolnay/rust-toolchain@stable
318321
with:
319-
toolchain: stable-i686-pc-windows-msvc
322+
targets: ${{ env.TARGET }}
320323
- uses: Swatinem/rust-cache@v2
321-
- name: cargo check default features
322-
run: cargo check --workspace --bins --examples
323324
- uses: taiki-e/install-action@v2
324325
with:
325326
tool: nextest
326327
- name: Test (nextest)
327-
run: cargo nextest run --workspace --no-fail-fast
328+
run: cargo nextest run --target $env:TARGET --workspace --no-fail-fast size
328329

329330
lint:
330331
runs-on: ubuntu-latest
@@ -521,7 +522,7 @@ jobs:
521522
- test-fast
522523
- test-fixtures-windows
523524
- test-32bit
524-
- test-32bit-windows
525+
- test-32bit-windows-size
525526
- lint
526527
- cargo-deny
527528
- check-packetline

0 commit comments

Comments
 (0)