|
43 | 43 | uses: dtolnay/rust-toolchain@master |
44 | 44 | with: |
45 | 45 | toolchain: nightly |
46 | | - - name: rand |
47 | | - run: cargo doc --all-features --no-deps |
48 | | - - name: rand_core |
49 | | - run: cargo doc --all-features --package rand_core --no-deps |
50 | 46 | - name: rand_distr |
51 | 47 | run: cargo doc --all-features --package rand_distr --no-deps |
52 | | - - name: rand_chacha |
53 | | - run: cargo doc --all-features --package rand_chacha --no-deps |
54 | | - - name: rand_pcg |
55 | | - run: cargo doc --all-features --package rand_pcg --no-deps |
56 | 48 |
|
57 | 49 | test: |
58 | 50 | runs-on: ${{ matrix.os }} |
@@ -102,35 +94,11 @@ jobs: |
102 | 94 | if: ${{ matrix.variant == 'minimal_versions' }} |
103 | 95 | run: | |
104 | 96 | cargo generate-lockfile -Z minimal-versions |
105 | | - - name: Maybe nightly |
106 | | - if: ${{ matrix.toolchain == 'nightly' }} |
107 | | - run: | |
108 | | - cargo test --target ${{ matrix.target }} --features=nightly |
109 | | - cargo test --target ${{ matrix.target }} --all-features |
110 | | - cargo test --target ${{ matrix.target }} --lib --tests --no-default-features |
111 | | - - name: Test rand |
112 | | - run: | |
113 | | - cargo test --target ${{ matrix.target }} --lib --tests --no-default-features |
114 | | - cargo build --target ${{ matrix.target }} --no-default-features --features alloc,os_rng,small_rng,unbiased |
115 | | - cargo test --target ${{ matrix.target }} --lib --tests --no-default-features --features=alloc,os_rng,small_rng |
116 | | - cargo test --target ${{ matrix.target }} --examples |
117 | | - - name: Test rand (all stable features) |
118 | | - run: | |
119 | | - cargo test --target ${{ matrix.target }} --features=serde,log,small_rng |
120 | | - - name: Test rand_core |
121 | | - run: | |
122 | | - cargo test --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml |
123 | | - cargo test --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml --no-default-features |
124 | | - cargo test --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml --no-default-features --features=os_rng |
125 | 97 | - name: Test rand_distr |
126 | 98 | run: | |
127 | | - cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --features=serde |
128 | | - cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --no-default-features |
129 | | - cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --no-default-features --features=std,std_math |
130 | | - - name: Test rand_pcg |
131 | | - run: cargo test --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde |
132 | | - - name: Test rand_chacha |
133 | | - run: cargo test --target ${{ matrix.target }} --manifest-path rand_chacha/Cargo.toml --features=serde |
| 99 | + cargo test --target ${{ matrix.target }} --features=serde |
| 100 | + cargo test --target ${{ matrix.target }} --no-default-features |
| 101 | + cargo test --target ${{ matrix.target }} --no-default-features --features=std,std_math |
134 | 102 |
|
135 | 103 | test-cross: |
136 | 104 | runs-on: ${{ matrix.os }} |
@@ -159,63 +127,4 @@ jobs: |
159 | 127 | - name: Test |
160 | 128 | run: | |
161 | 129 | # all stable features: |
162 | | - cross test --no-fail-fast --target ${{ matrix.target }} --features=serde,log,small_rng |
163 | | - cross test --no-fail-fast --target ${{ matrix.target }} --examples |
164 | | - cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml |
165 | | - cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --features=serde |
166 | | - cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde |
167 | | - cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_chacha/Cargo.toml |
168 | | -
|
169 | | - test-miri: |
170 | | - runs-on: ubuntu-latest |
171 | | - steps: |
172 | | - - uses: actions/checkout@v4 |
173 | | - - name: Install toolchain |
174 | | - run: | |
175 | | - rustup toolchain install nightly --component miri |
176 | | - rustup override set nightly |
177 | | - cargo miri setup |
178 | | - - name: Test rand |
179 | | - run: | |
180 | | - cargo miri test --no-default-features --lib --tests |
181 | | - cargo miri test --features=log,small_rng |
182 | | - cargo miri test --manifest-path rand_core/Cargo.toml |
183 | | - cargo miri test --manifest-path rand_core/Cargo.toml --features=serde |
184 | | - cargo miri test --manifest-path rand_core/Cargo.toml --no-default-features |
185 | | - #cargo miri test --manifest-path rand_distr/Cargo.toml # no unsafe and lots of slow tests |
186 | | - cargo miri test --manifest-path rand_pcg/Cargo.toml --features=serde |
187 | | - cargo miri test --manifest-path rand_chacha/Cargo.toml --no-default-features |
188 | | -
|
189 | | - test-no-std: |
190 | | - runs-on: ubuntu-latest |
191 | | - steps: |
192 | | - - uses: actions/checkout@v4 |
193 | | - - name: Install toolchain |
194 | | - uses: dtolnay/rust-toolchain@nightly |
195 | | - with: |
196 | | - target: thumbv6m-none-eabi |
197 | | - - name: Build top-level only |
198 | | - run: cargo build --target=thumbv6m-none-eabi --no-default-features |
199 | | - |
200 | | - # Disabled due to lack of known working compiler versions (not older than our MSRV) |
201 | | - # test-avr: |
202 | | - # runs-on: ubuntu-latest |
203 | | - # steps: |
204 | | - # - uses: actions/checkout@v4 |
205 | | - # - name: Install toolchain |
206 | | - # uses: dtolnay/rust-toolchain@nightly |
207 | | - # with: |
208 | | - # components: rust-src |
209 | | - # - name: Build top-level only |
210 | | - # run: cargo build -Z build-std=core --target=avr-unknown-gnu-atmega328 --no-default-features |
211 | | - |
212 | | - test-ios: |
213 | | - runs-on: macos-latest |
214 | | - steps: |
215 | | - - uses: actions/checkout@v4 |
216 | | - - name: Install toolchain |
217 | | - uses: dtolnay/rust-toolchain@nightly |
218 | | - with: |
219 | | - target: aarch64-apple-ios |
220 | | - - name: Build top-level only |
221 | | - run: cargo build --target=aarch64-apple-ios |
| 130 | + cross test --no-fail-fast --target ${{ matrix.target }} --features=serde |
0 commit comments