Skip to content

Commit 1dc70c8

Browse files
committed
Update CI
1 parent 848ad1a commit 1dc70c8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
toolchain: nightly
2424
- name: rand
2525
run: cargo doc --all-features --no-deps
26+
- name: thread-rng
27+
run: cargo doc --all-features --package thread-rng --no-deps
2628
- name: rand_core
2729
run: cargo doc --all-features --package rand_core --no-deps
2830
- name: rand_distr
@@ -95,7 +97,10 @@ jobs:
9597
cargo test --target ${{ matrix.target }} --examples
9698
- name: Test rand (all stable features)
9799
run: |
98-
cargo test --target ${{ matrix.target }} --features=serde,log,small_rng
100+
cargo test --target ${{ matrix.target }} --features=serde,log,small_rng,thread-rng
101+
- name: Test thread-rng
102+
run: |
103+
cargo test --target ${{ matrix.target }} --manifest-path thread-rng/Cargo.toml
99104
- name: Test rand_core
100105
run: |
101106
cargo test --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
@@ -140,6 +145,7 @@ jobs:
140145
# all stable features:
141146
cross test --no-fail-fast --target ${{ matrix.target }} --features=serde,log,small_rng
142147
cross test --no-fail-fast --target ${{ matrix.target }} --examples
148+
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path thread-rng/Cargo.toml
143149
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
144150
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --features=serde
145151
cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde
@@ -157,7 +163,8 @@ jobs:
157163
- name: Test rand
158164
run: |
159165
cargo miri test --no-default-features --lib --tests
160-
cargo miri test --features=log,small_rng
166+
cargo miri test --features=log,small_rng,thread-rng
167+
cargo miri test --manifest-path thread-rng/Cargo.toml
161168
cargo miri test --manifest-path rand_core/Cargo.toml
162169
cargo miri test --manifest-path rand_core/Cargo.toml --features=serde
163170
cargo miri test --manifest-path rand_core/Cargo.toml --no-default-features

0 commit comments

Comments
 (0)