7878 cargo test --target ${{ matrix.target }} --benches --features=nightly
7979 cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --benches
8080 cargo test --target ${{ matrix.target }} --lib --tests --no-default-features --features min_const_gen
81+ - name : Use Cargo.lock.msrv (1.36)
82+ if : ${{ matrix.toolchain == '1.36.0' }}
83+ run : |
84+ cp Cargo.lock.msrv Cargo.lock
8185 - name : Test rand
8286 run : |
8387 cargo test --target ${{ matrix.target }} --lib --tests --no-default-features
@@ -87,12 +91,12 @@ jobs:
8791 - name : Test rand (all stable features, non-MSRV)
8892 if : ${{ matrix.toolchain != '1.36.0' }}
8993 run : |
90- cargo test --target ${{ matrix.target }} --features=serde1,log, small_rng,min_const_gen
94+ cargo test --target ${{ matrix.target }} --features=serde1,small_rng,min_const_gen
9195 - name : Test rand (all stable features, MSRV)
9296 if : ${{ matrix.toolchain == '1.36.0' }}
9397 run : |
9498 # const generics are not stable on 1.36.0
95- cargo test --target ${{ matrix.target }} --features=serde1,log, small_rng
99+ cargo test --target ${{ matrix.target }} --features=serde1,small_rng
96100 - name : Test rand_core
97101 run : |
98102 cargo test --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
@@ -115,20 +119,18 @@ jobs:
115119 matrix :
116120 include :
117121 - os : ubuntu-latest
118- target : mips -unknown-linux-gnu
122+ target : powerpc -unknown-linux-gnu
119123 toolchain : stable
120124
121125 steps :
122- - uses : actions/checkout@v2
126+ - uses : actions/checkout@v6
123127 - name : Install toolchain
124- uses : actions-rs/ toolchain@v1
128+ uses : dtolnay/rust- toolchain@master
125129 with :
126- profile : minimal
127130 target : ${{ matrix.target }}
128131 toolchain : ${{ matrix.toolchain }}
129- override : true
130132 - name : Cache cargo plugins
131- uses : actions/cache@v1
133+ uses : actions/cache@v5
132134 with :
133135 path : ~/.cargo/bin/
134136 key : ${{ runner.os }}-cargo-plugins
@@ -137,7 +139,7 @@ jobs:
137139 - name : Test
138140 run : |
139141 # all stable features:
140- cross test --no-fail-fast --target ${{ matrix.target }} --features=serde1,log, small_rng
142+ cross test --no-fail-fast --target ${{ matrix.target }} --features=serde1,small_rng
141143 cross test --no-fail-fast --target ${{ matrix.target }} --examples
142144 cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
143145 cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --features=serde1
@@ -156,7 +158,7 @@ jobs:
156158 - name : Test rand
157159 run : |
158160 cargo miri test --no-default-features --lib --tests
159- cargo miri test --features=log, small_rng
161+ cargo miri test --features=small_rng
160162 cargo miri test --manifest-path rand_core/Cargo.toml
161163 cargo miri test --manifest-path rand_core/Cargo.toml --features=serde1
162164 cargo miri test --manifest-path rand_core/Cargo.toml --no-default-features
0 commit comments