Skip to content

Commit ed9420a

Browse files
authored
Fix directories (#3)
* Remove path dependencies * Remove gh-pages build * Remove tests targetting crates not present in this repo * Remove miri test: already disabled due to low speed and lack of unsafe * Move rand_distr to top level * Fix Cargo manifest location as used in tests * Add Cargo.lock.msrv * Downgrade serde_with in Cargo.lock.msrv * Fix distr_test crate * Fix benches crate
1 parent a855547 commit ed9420a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+727
-1058
lines changed

.github/workflows/benches.yml

-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ on:
66
paths-ignore:
77
- "**.md"
88
- "distr_test/**"
9-
- "examples/**"
109
pull_request:
1110
branches: [ master ]
1211
paths-ignore:
1312
- "**.md"
1413
- "distr_test/**"
15-
- "examples/**"
1614

1715
defaults:
1816
run:

.github/workflows/distr_test.yml

-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ on:
66
paths-ignore:
77
- "**.md"
88
- "benches/**"
9-
- "examples/**"
109
pull_request:
1110
branches: [ master ]
1211
paths-ignore:
1312
- "**.md"
1413
- "benches/**"
15-
- "examples/**"
1614

1715
defaults:
1816
run:

.github/workflows/gh-pages.yml

-47
This file was deleted.

.github/workflows/test.yml

+4-95
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,8 @@ jobs:
4343
uses: dtolnay/rust-toolchain@master
4444
with:
4545
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
5046
- name: rand_distr
5147
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
5648

5749
test:
5850
runs-on: ${{ matrix.os }}
@@ -102,35 +94,11 @@ jobs:
10294
if: ${{ matrix.variant == 'minimal_versions' }}
10395
run: |
10496
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
12597
- name: Test rand_distr
12698
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
134102
135103
test-cross:
136104
runs-on: ${{ matrix.os }}
@@ -159,63 +127,4 @@ jobs:
159127
- name: Test
160128
run: |
161129
# 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
File renamed without changes.

rand_distr/COPYRIGHT COPYRIGHT

File renamed without changes.

0 commit comments

Comments
 (0)