File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,26 @@ jobs:
88
88
# See tools/ci/src/main.rs for the commands this runs
89
89
run : cargo run -p ci -- lints
90
90
91
+ miri-partitions :
92
+ runs-on : ubuntu-latest
93
+ outputs :
94
+ partitions : ${{ steps.env.outputs.partitions }}
95
+ steps :
96
+ - id : env
97
+ run : |
98
+ count=50
99
+ t="["
100
+ for i in `seq 1 $((count-1))`
101
+ do
102
+ t="$t$i,"
103
+ done
104
+ echo "partitions=$t$count]" >> $GITHUB_OUTPUT
105
+
91
106
miri :
107
+ needs : [miri-partitions]
92
108
strategy :
93
109
matrix :
94
- partition : [1, 2, 3]
110
+ partition : ${{ fromJSON(needs.miri-partitions.outputs.partitions) }}
95
111
runs-on : macos-latest
96
112
timeout-minutes : 60
97
113
steps :
@@ -120,7 +136,7 @@ jobs:
120
136
- name : CI job
121
137
# To run the tests one item at a time for troubleshooting, use
122
138
# cargo --quiet test --lib -- --list | sed 's/: test$//' | MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-disable-weak-memory-emulation" xargs -n1 cargo miri test -p bevy_ecs --lib -- --exact
123
- run : cargo miri nextest run -p bevy_ecs --features bevy_utils/debug --test-threads=1 -- partition count:${{ matrix.partition }}/${{ strategy.job-total }}
139
+ run : cargo miri nextest run -p bevy_ecs --features bevy_utils/debug --partition count:${{ matrix.partition }}/${{ strategy.job-total }}
124
140
env :
125
141
# -Zrandomize-layout makes sure we dont rely on the layout of anything that might change
126
142
RUSTFLAGS : -Zrandomize-layout
You can’t perform that action at this time.
0 commit comments