@@ -167,14 +167,15 @@ jobs:
167
167
RUSTFLAGS : ${{ matrix.rustflags }}
168
168
169
169
cross-tests :
170
- name : " ${{ matrix.target }} (via cross)"
170
+ name : " ${{ matrix.target_feature }} on ${{ matrix. target }} (via cross)"
171
171
runs-on : ubuntu-latest
172
172
strategy :
173
173
fail-fast : false
174
174
175
175
matrix :
176
176
target :
177
177
- armv7-unknown-linux-gnueabihf
178
+ - thumbv7neon-unknown-linux-gnueabihf
178
179
- aarch64-unknown-linux-gnu
179
180
- powerpc-unknown-linux-gnu
180
181
- powerpc64-unknown-linux-gnu
@@ -183,7 +184,11 @@ jobs:
183
184
# MIPS uses a nonstandard binary representation for NaNs which makes it worth testing
184
185
# - mips-unknown-linux-gnu
185
186
# - mips64-unknown-linux-gnuabi64
186
- target_feature : ["", "+native"]
187
+ target_feature : " default"
188
+ include :
189
+ - { target: powerpc64-unknown-linux-gnu, target_feature: "native" }
190
+ - { target: powerpc64le-unknown-linux-gnu, target_feature: "native" }
191
+ - { target: riscv64gc-unknown-linux-gnu, target_feature: "native" }
187
192
188
193
steps :
189
194
- uses : actions/checkout@v2
@@ -206,7 +211,18 @@ jobs:
206
211
echo "$HOME/.bin" >> $GITHUB_PATH
207
212
208
213
- name : Configure RUSTFLAGS
209
- run : echo "-Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV
214
+ shell : bash
215
+ run : |
216
+ case "${{ matrix.target_feature }}" in
217
+ default)
218
+ echo "RUSTFLAGS=" >> $GITHUB_ENV;;
219
+ native)
220
+ echo "RUSTFLAGS=-Ctarget-cpu=native" >> $GITHUB_ENV
221
+ ;;
222
+ *)
223
+ echo "RUSTFLAGS=-Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV
224
+ ;;
225
+ esac
210
226
211
227
- name : Test (debug)
212
228
run : cross test --verbose --target=${{ matrix.target }}
0 commit comments