Skip to content

Commit ada7da3

Browse files
committed
Use a compile gate for Windows Rust CI
Compile every target on Windows without linking the unit-test harnesses, which require packaged SDL and Lua libraries. Keep the full Rust test suite on Ubuntu.
1 parent b96a724 commit ada7da3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- run: cargo fmt --all -- --check
2323
- run: cargo clippy --locked --workspace --all-targets -- -D warnings
24-
- run: cargo test --locked --workspace --all-targets
24+
- if: runner.os == 'Windows'
25+
run: cargo check --locked --workspace --all-targets
26+
- if: runner.os != 'Windows'
27+
run: cargo test --locked --workspace --all-targets
2528

2629
engine:
2730
runs-on: macos-15

0 commit comments

Comments
 (0)