1- name : Main tests
1+ name : Tests
22
33on :
44 push :
4444 with :
4545 toolchain : nightly
4646 - name : rand_core
47- run : cargo doc --all-features -- no-deps
47+ run : cargo doc --no-deps
4848
4949 test :
5050 runs-on : ${{ matrix.os }}
9292 - run : ${{ matrix.deps }}
9393 - name : Maybe minimal versions
9494 if : ${{ matrix.variant == 'minimal_versions' }}
95- run : |
96- cargo generate-lockfile -Z minimal-versions
95+ run : cargo generate-lockfile -Z minimal-versions
9796 - name : Test rand_core
98- run : |
99- cargo test --target ${{ matrix.target }} --no-default-features
100- cargo test --target ${{ matrix.target }} --features serde
97+ run : cargo test --target ${{ matrix.target }}
10198
10299 test-cross :
103100 runs-on : ${{ matrix.os }}
@@ -124,9 +121,7 @@ jobs:
124121 - name : Install cross
125122 run : cargo install cross || true
126123 - name : Test
127- run : |
128- # all stable features:
129- cross test --no-fail-fast --target ${{ matrix.target }}
124+ run : cross test --no-fail-fast --target ${{ matrix.target }}
130125
131126 test-miri :
132127 runs-on : ubuntu-latest
@@ -138,10 +133,7 @@ jobs:
138133 rustup override set nightly
139134 cargo miri setup
140135 - name : Test rand
141- run : |
142- cargo miri test
143- cargo miri test --features=serde
144- cargo miri test --no-default-features
136+ run : cargo miri test
145137
146138 test-no-std :
147139 runs-on : ubuntu-latest
@@ -152,7 +144,7 @@ jobs:
152144 with :
153145 target : thumbv6m-none-eabi
154146 - name : Build top-level only
155- run : cargo build --target=thumbv6m-none-eabi --no-default-features
147+ run : cargo build --target=thumbv6m-none-eabi
156148
157149 test-ios :
158150 runs-on : macos-latest
0 commit comments