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:
8888 # See tools/ci/src/main.rs for the commands this runs
8989 run : cargo run -p ci -- lints
9090
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+
91106 miri :
107+ needs : [miri-partitions]
92108 strategy :
93109 matrix :
94- partition : [1, 2, 3]
110+ partition : ${{ fromJSON(needs.miri-partitions.outputs.partitions) }}
95111 runs-on : macos-latest
96112 timeout-minutes : 60
97113 steps :
@@ -120,7 +136,7 @@ jobs:
120136 - name : CI job
121137 # To run the tests one item at a time for troubleshooting, use
122138 # 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 }}
124140 env :
125141 # -Zrandomize-layout makes sure we dont rely on the layout of anything that might change
126142 RUSTFLAGS : -Zrandomize-layout
You can’t perform that action at this time.
0 commit comments