62
62
- name : Install toolchain
63
63
uses : actions-rs/toolchain@v1
64
64
with :
65
+ profile : minimal
65
66
target : ${{ matrix.target }}
66
67
toolchain : ${{ matrix.toolchain }}
67
68
override : true
97
98
- name : Test rand_hc
98
99
run : cargo test --target ${{ matrix.target }} --manifest-path rand_hc/Cargo.toml
99
100
101
+ test-cross :
102
+ runs-on : ${{ matrix.os }}
103
+ strategy :
104
+ fail-fast : false
105
+ matrix :
106
+ include :
107
+ - os : ubuntu-latest
108
+ target : mips-unknown-linux-gnu
109
+ toolchain : stable
110
+
111
+ steps :
112
+ - uses : actions/checkout@v2
113
+ - name : Install toolchain
114
+ uses : actions-rs/toolchain@v1
115
+ with :
116
+ profile : minimal
117
+ target : ${{ matrix.target }}
118
+ toolchain : ${{ matrix.toolchain }}
119
+ override : true
120
+ - name : Cache cargo plugins
121
+ uses : actions/cache@v1
122
+ with :
123
+ path : ~/.cargo/bin/
124
+ key : ${{ runner.os }}-cargo-plugins
125
+ - name : Install cross
126
+ run : cargo install cross || true
127
+ - name : Test
128
+ run : |
129
+ # all stable features:
130
+ cross test -v --no-fail-fast --target ${{ matrix.target }} --features=serde1,log,small_rng
131
+ cross test -v --no-fail-fast --target ${{ matrix.target }} --examples
132
+ cross test -v --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_core/Cargo.toml
133
+ cross test -v --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml
134
+ cross test -v --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_pcg/Cargo.toml --features=serde1
135
+ cross test -v --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_chacha/Cargo.toml
136
+ cross test -v --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_hc/Cargo.toml
137
+
100
138
test-miri :
101
139
runs-on : ubuntu-latest
102
140
steps :
@@ -125,6 +163,7 @@ jobs:
125
163
- name : Install toolchain
126
164
uses : actions-rs/toolchain@v1
127
165
with :
166
+ profile : minimal
128
167
toolchain : nightly
129
168
target : thumbv6m-none-eabi
130
169
override : true
@@ -138,6 +177,7 @@ jobs:
138
177
- name : Install toolchain
139
178
uses : actions-rs/toolchain@v1
140
179
with :
180
+ profile : minimal
141
181
toolchain : nightly
142
182
target : aarch64-apple-ios
143
183
override : true
0 commit comments