Skip to content

Commit 9720f11

Browse files
authored
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
1 parent 387dd64 commit 9720f11

File tree

8 files changed

+31
-55
lines changed

8 files changed

+31
-55
lines changed

.github/workflows/gh-pages.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ jobs:
1010
name: GH-pages documentation
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
- name: Install toolchain
15-
uses: actions-rs/toolchain@v1
16-
with:
17-
profile: minimal
18-
toolchain: nightly
19-
override: true
15+
uses: dtolnay/rust-toolchain@nightly
2016
- name: doc (rand)
2117
env:
2218
RUSTDOCFLAGS: --cfg doc_cfg
2319
# --all builds all crates, but with default features for other crates (okay in this case)
2420
run: |
2521
cargo doc --all --features nightly,serde1,getrandom,small_rng
2622
cp utils/redirect.html target/doc/index.html
27-
- name: Deploy
28-
uses: peaceiris/actions-gh-pages@v3
23+
- name: Setup Pages
24+
uses: actions/configure-pages@v2
25+
- name: Upload artifact
26+
uses: actions/upload-pages-artifact@v1
2927
with:
30-
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_dir: ./target/doc
28+
path: './target/doc'
29+
- name: Deploy to GitHub Pages
30+
id: deployment
31+
uses: actions/deploy-pages@v1

.github/workflows/test.yml

+14-30
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ jobs:
1111
name: Check doc
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Install toolchain
16-
uses: actions-rs/toolchain@v1
17-
with:
18-
profile: minimal
19-
toolchain: nightly
20-
override: true
16+
uses: dtolnay/rust-toolchain@nightly
2117
- run: cargo install cargo-deadlinks
2218
- name: doc (rand)
2319
env:
@@ -58,14 +54,12 @@ jobs:
5854
variant: minimal_versions
5955

6056
steps:
61-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@v3
6258
- name: Install toolchain
63-
uses: actions-rs/toolchain@v1
59+
uses: dtolnay/rust-toolchain@master
6460
with:
65-
profile: minimal
6661
target: ${{ matrix.target }}
6762
toolchain: ${{ matrix.toolchain }}
68-
override: true
6963
- run: ${{ matrix.deps }}
7064
- name: Maybe minimal versions
7165
if: ${{ matrix.variant == 'minimal_versions' }}
@@ -113,16 +107,14 @@ jobs:
113107
toolchain: stable
114108

115109
steps:
116-
- uses: actions/checkout@v2
110+
- uses: actions/checkout@v3
117111
- name: Install toolchain
118-
uses: actions-rs/toolchain@v1
112+
uses: dtolnay/rust-toolchain@master
119113
with:
120-
profile: minimal
121114
target: ${{ matrix.target }}
122115
toolchain: ${{ matrix.toolchain }}
123-
override: true
124116
- name: Cache cargo plugins
125-
uses: actions/cache@v1
117+
uses: actions/cache@v3
126118
with:
127119
path: ~/.cargo/bin/
128120
key: ${{ runner.os }}-cargo-plugins
@@ -141,7 +133,7 @@ jobs:
141133
test-miri:
142134
runs-on: ubuntu-latest
143135
steps:
144-
- uses: actions/checkout@v2
136+
- uses: actions/checkout@v3
145137
- name: Install toolchain
146138
run: |
147139
rustup toolchain install nightly --component miri
@@ -161,41 +153,33 @@ jobs:
161153
test-no-std:
162154
runs-on: ubuntu-latest
163155
steps:
164-
- uses: actions/checkout@v2
156+
- uses: actions/checkout@v3
165157
- name: Install toolchain
166-
uses: actions-rs/toolchain@v1
158+
uses: dtolnay/rust-toolchain@nightly
167159
with:
168-
profile: minimal
169-
toolchain: nightly
170160
target: thumbv6m-none-eabi
171-
override: true
172161
- name: Build top-level only
173162
run: cargo build --target=thumbv6m-none-eabi --no-default-features
174163

175164
test-avr:
176165
runs-on: ubuntu-latest
177166
steps:
178-
- uses: actions/checkout@v2
167+
- uses: actions/checkout@v3
179168
- name: Install toolchain
180-
uses: actions-rs/toolchain@v1
169+
uses: dtolnay/rust-toolchain@master
181170
with:
182-
profile: minimal
183171
toolchain: nightly-2021-01-07 # Pinned compiler version due to https://github.com/rust-lang/compiler-builtins/issues/400
184172
components: rust-src
185-
override: true
186173
- name: Build top-level only
187174
run: cargo build -Z build-std=core --target=avr-unknown-gnu-atmega328 --no-default-features
188175

189176
test-ios:
190177
runs-on: macos-latest
191178
steps:
192-
- uses: actions/checkout@v2
179+
- uses: actions/checkout@v3
193180
- name: Install toolchain
194-
uses: actions-rs/toolchain@v1
181+
uses: dtolnay/rust-toolchain@nightly
195182
with:
196-
profile: minimal
197-
toolchain: nightly
198183
target: aarch64-apple-ios
199-
override: true
200184
- name: Build top-level only
201185
run: cargo build --target=aarch64-apple-ios

README.md

+3-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
66
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand)
77
[![API](https://docs.rs/rand/badge.svg)](https://docs.rs/rand)
8-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.51+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
99

1010
A Rust library for random number generation, featuring:
1111

@@ -95,17 +95,9 @@ Some versions of Rand crates have been yanked ("unreleased"). Where this occurs,
9595
the crate's CHANGELOG *should* be updated with a rationale, and a search on the
9696
issue tracker with the keyword `yank` *should* uncover the motivation.
9797

98-
### Rust version requirements
98+
### Rust version requirements (MSRV)
9999

100-
Since version 0.8, Rand requires **Rustc version 1.36 or greater**.
101-
Rand 0.7 requires Rustc 1.32 or greater while versions 0.5 require Rustc 1.22 or
102-
greater, and 0.4 and 0.3 (since approx. June 2017) require Rustc version 1.15 or
103-
greater. Subsets of the Rand code may work with older Rust versions, but this is
104-
not supported.
105-
106-
Continuous Integration (CI) will always test the minimum supported Rustc version
107-
(the MSRV). The current policy is that this can be updated in any
108-
Rand release if required, but the change must be noted in the changelog.
100+
This version of Rand requires Rustc >= 1.51.0.
109101

110102
## Crate Features
111103

examples/rayon-monte-carlo.rs

100755100644
File mode changed.

rand_chacha/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
66
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_chacha)
77
[![API](https://docs.rs/rand_chacha/badge.svg)](https://docs.rs/rand_chacha)
8-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.51+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
99

1010
A cryptographically secure random number generator that uses the ChaCha
1111
algorithm.

rand_core/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
66
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_core)
77
[![API](https://docs.rs/rand_core/badge.svg)](https://docs.rs/rand_core)
8-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.51+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
99

1010
Core traits and error types of the [rand] library, plus tools for implementing
1111
RNGs.

rand_distr/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
66
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_distr)
77
[![API](https://docs.rs/rand_distr/badge.svg)](https://docs.rs/rand_distr)
8-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.51+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
99

1010
Implements a full suite of random number distribution sampling routines.
1111

rand_pcg/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Book](https://img.shields.io/badge/book-master-yellow.svg)](https://rust-random.github.io/book/)
66
[![API](https://img.shields.io/badge/api-master-yellow.svg)](https://rust-random.github.io/rand/rand_pcg)
77
[![API](https://docs.rs/rand_pcg/badge.svg)](https://docs.rs/rand_pcg)
8-
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.36+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
8+
[![Minimum rustc version](https://img.shields.io/badge/rustc-1.51+-lightgray.svg)](https://github.com/rust-random/rand#rust-version-requirements)
99

1010
Implements a selection of PCG random number generators.
1111

0 commit comments

Comments
 (0)