Skip to content

Commit 134b798

Browse files
authored
[ci] Test some targets only in the merge queue (#1314)
* [ci] Only run Miri tests in merge queue Comparing [1] (run with the parent commit) and [2] (run with this commit), we see an overall speedup of 19m33s -> 6m53s, or ~65%. These gains will only be realized during PR development; the CI test execution time in the merge queue will remain unchanged. [1] https://github.com/google/zerocopy/actions/runs/9149347472 [2] https://github.com/google/zerocopy/actions/runs/9149505999?pr=1313 * [ci] Test some targets only in the merge queue Comparing [1] (run with the parent commit) and [2] (run with this commit), we see an overall speedup of 6m54s -> 5m36s, or ~19%. These gains will only be realized during PR development; the CI test execution time in the merge queue will remain unchanged. Makes progress on #1310 [1] https://github.com/google/zerocopy/actions/runs/9149561660 [2] https://github.com/google/zerocopy/actions/runs/9149620991?pr=1314
1 parent 6775428 commit 134b798

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
]
6161
features: [ "--no-default-features", "", "--features __internal_use_only_features_that_work_on_stable", "--all-features" ]
6262
crate: [ "zerocopy", "zerocopy-derive" ]
63+
event_name: [ "${{ github.event_name }}" ]
6364
exclude:
6465
# Exclude any combination which uses a non-nightly toolchain but
6566
# enables nightly features.
@@ -73,7 +74,6 @@ jobs:
7374
features: "--all-features"
7475
- toolchain: "zerocopy-panic-in-const"
7576
features: "--all-features"
76-
7777
# Exclude any combination for the zerocopy-derive crate which
7878
# uses zerocopy features.
7979
- crate: "zerocopy-derive"
@@ -92,6 +92,24 @@ jobs:
9292
toolchain: "zerocopy-aarch64-simd"
9393
- crate: "zerocopy-derive"
9494
toolchain: "zerocopy-panic-in-const"
95+
# Exclude most targets during PR development, but allow them in the
96+
# merge queue. This speeds up our development flow, while still
97+
# ensuring that errors on these targets are caught before a PR is
98+
# merged to main.
99+
- target: "arm-unknown-linux-gnueabi"
100+
event_name: "pull_request"
101+
- target: "aarch64-unknown-linux-gnu"
102+
event_name: "pull_request"
103+
- target: "powerpc-unknown-linux-gnu"
104+
event_name: "pull_request"
105+
- target: "powerpc64-unknown-linux-gnu"
106+
event_name: "pull_request"
107+
- target: "riscv64gc-unknown-linux-gnu"
108+
event_name: "pull_request"
109+
- target: "s390x-unknown-linux-gnu"
110+
event_name: "pull_request"
111+
- target: "wasm32-wasi"
112+
event_name: "pull_request"
95113

96114
name: Build & Test (${{ matrix.crate }} / ${{ matrix.toolchain }} / ${{ matrix.features }} / ${{ matrix.target }})
97115

0 commit comments

Comments
 (0)