Skip to content

Commit e53ec04

Browse files
committed
Bypass compiletest on Windows push and pull_request builds
1 parent acc7fb0 commit e53ec04

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
- uses: dtolnay/rust-toolchain@master
3535
with:
3636
toolchain: ${{matrix.rust}}
37+
- name: Determine test suite subset
38+
# Our Windows jobs are the longest running, so exclude the relatively
39+
# slow compiletest from them to speed up end-to-end CI time, except
40+
# during cron builds when no human is presumably waiting on the build.
41+
# The extra coverage is not particularly valuable and we can still
42+
# ensure the test is kept passing on the basis of the scheduled builds.
43+
if: matrix.os == 'windows' && github.event_name != 'schedule'
44+
run: echo '::set-env name=RUSTFLAGS::--cfg skip_ui_tests'
3745
- run: cargo run --manifest-path demo/Cargo.toml
3846
- run: cargo test --workspace --exclude cxx-test-suite
3947

tests/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#[rustversion::attr(not(nightly), ignore)]
2+
#[cfg_attr(skip_ui_tests, ignore)]
23
#[test]
34
fn ui() {
45
let t = trybuild::TestCases::new();

0 commit comments

Comments
 (0)