Update GitHub Actions (#1263)
* examples/rayon-monte-carlo.rs: remove execute bit of file metadata * Document in README that MSRV is 1.51.0 This was changed in #1246 * Update GitHub Actions
This commit is contained in:
parent
387dd644a2
commit
9720f110a6
20
.github/workflows/gh-pages.yml
vendored
20
.github/workflows/gh-pages.yml
vendored
@ -10,13 +10,9 @@ jobs:
|
||||
name: GH-pages documentation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
override: true
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
- name: doc (rand)
|
||||
env:
|
||||
RUSTDOCFLAGS: --cfg doc_cfg
|
||||
@ -24,8 +20,12 @@ jobs:
|
||||
run: |
|
||||
cargo doc --all --features nightly,serde1,getrandom,small_rng
|
||||
cp utils/redirect.html target/doc/index.html
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v2
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./target/doc
|
||||
path: './target/doc'
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
44
.github/workflows/test.yml
vendored
44
.github/workflows/test.yml
vendored
@ -11,13 +11,9 @@ jobs:
|
||||
name: Check doc
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
override: true
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
- run: cargo install cargo-deadlinks
|
||||
- name: doc (rand)
|
||||
env:
|
||||
@ -58,14 +54,12 @@ jobs:
|
||||
variant: minimal_versions
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
profile: minimal
|
||||
target: ${{ matrix.target }}
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
- run: ${{ matrix.deps }}
|
||||
- name: Maybe minimal versions
|
||||
if: ${{ matrix.variant == 'minimal_versions' }}
|
||||
@ -113,16 +107,14 @@ jobs:
|
||||
toolchain: stable
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
profile: minimal
|
||||
target: ${{ matrix.target }}
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
- name: Cache cargo plugins
|
||||
uses: actions/cache@v1
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/
|
||||
key: ${{ runner.os }}-cargo-plugins
|
||||
@ -141,7 +133,7 @@ jobs:
|
||||
test-miri:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
run: |
|
||||
rustup toolchain install nightly --component miri
|
||||
@ -161,41 +153,33 @@ jobs:
|
||||
test-no-std:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
target: thumbv6m-none-eabi
|
||||
override: true
|
||||
- name: Build top-level only
|
||||
run: cargo build --target=thumbv6m-none-eabi --no-default-features
|
||||
|
||||
test-avr:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly-2021-01-07 # Pinned compiler version due to https://github.com/rust-lang/compiler-builtins/issues/400
|
||||
components: rust-src
|
||||
override: true
|
||||
- name: Build top-level only
|
||||
run: cargo build -Z build-std=core --target=avr-unknown-gnu-atmega328 --no-default-features
|
||||
|
||||
test-ios:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
target: aarch64-apple-ios
|
||||
override: true
|
||||
- name: Build top-level only
|
||||
run: cargo build --target=aarch64-apple-ios
|
||||
|
14
README.md
14
README.md
@ -5,7 +5,7 @@
|
||||
[](https://rust-random.github.io/book/)
|
||||
[](https://rust-random.github.io/rand/rand)
|
||||
[](https://docs.rs/rand)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
|
||||
A Rust library for random number generation, featuring:
|
||||
|
||||
@ -95,17 +95,9 @@ Some versions of Rand crates have been yanked ("unreleased"). Where this occurs,
|
||||
the crate's CHANGELOG *should* be updated with a rationale, and a search on the
|
||||
issue tracker with the keyword `yank` *should* uncover the motivation.
|
||||
|
||||
### Rust version requirements
|
||||
### Rust version requirements (MSRV)
|
||||
|
||||
Since version 0.8, Rand requires **Rustc version 1.36 or greater**.
|
||||
Rand 0.7 requires Rustc 1.32 or greater while versions 0.5 require Rustc 1.22 or
|
||||
greater, and 0.4 and 0.3 (since approx. June 2017) require Rustc version 1.15 or
|
||||
greater. Subsets of the Rand code may work with older Rust versions, but this is
|
||||
not supported.
|
||||
|
||||
Continuous Integration (CI) will always test the minimum supported Rustc version
|
||||
(the MSRV). The current policy is that this can be updated in any
|
||||
Rand release if required, but the change must be noted in the changelog.
|
||||
This version of Rand requires Rustc >= 1.51.0.
|
||||
|
||||
## Crate Features
|
||||
|
||||
|
0
examples/rayon-monte-carlo.rs
Executable file → Normal file
0
examples/rayon-monte-carlo.rs
Executable file → Normal file
@ -5,7 +5,7 @@
|
||||
[](https://rust-random.github.io/book/)
|
||||
[](https://rust-random.github.io/rand/rand_chacha)
|
||||
[](https://docs.rs/rand_chacha)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
|
||||
A cryptographically secure random number generator that uses the ChaCha
|
||||
algorithm.
|
||||
|
@ -5,7 +5,7 @@
|
||||
[](https://rust-random.github.io/book/)
|
||||
[](https://rust-random.github.io/rand/rand_core)
|
||||
[](https://docs.rs/rand_core)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
|
||||
Core traits and error types of the [rand] library, plus tools for implementing
|
||||
RNGs.
|
||||
|
@ -5,7 +5,7 @@
|
||||
[](https://rust-random.github.io/book/)
|
||||
[](https://rust-random.github.io/rand/rand_distr)
|
||||
[](https://docs.rs/rand_distr)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
|
||||
Implements a full suite of random number distribution sampling routines.
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
[](https://rust-random.github.io/book/)
|
||||
[](https://rust-random.github.io/rand/rand_pcg)
|
||||
[](https://docs.rs/rand_pcg)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
[](https://github.com/rust-random/rand#rust-version-requirements)
|
||||
|
||||
Implements a selection of PCG random number generators.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user