Skip to content

Commit 81b6c5a

Browse files
Clean up conditionals in CI
1 parent d78a80b commit 81b6c5a

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

ci/run.sh

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,22 @@ cargo_test() {
6464

6565
cargo_test_impl() {
6666
ORIGINAL_RUSTFLAGS=${RUSTFLAGS}
67-
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v16 --cfg test_v32 --cfg test_v64" cargo_test ${@}
68-
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v128 --cfg test_v256" cargo_test ${@}
69-
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v512" cargo_test ${@}
67+
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v16 --cfg test_v32 --cfg test_v64" cargo_test "${@}"
68+
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v128 --cfg test_v256" cargo_test "${@}"
69+
RUSTFLAGS="${ORIGINAL_RUSTFLAGS} --cfg test_v512" cargo_test "${@}"
7070
RUSTFLAGS=${ORIGINAL_RUSTFLAGS}
7171
}
7272

73-
# Debug run:
74-
if [[ "${TARGET}" != "wasm32-unknown-unknown" ]] &&
75-
[[ ! "${TARGET}" =~ "aarch64" ]] &&
76-
[[ "${TARGET}" != "armv7-linux-androideabi" ]] &&
77-
[[ "${TARGET}" != "thumbv7neon-linux-androideabi" ]]; then
73+
release_only=false
74+
if [[ "${TARGET}" == "wasm32-unknown-unknown" ]]; then
75+
release_only=true
76+
else if [[ "${TARGET}" =~ "aarch64" ]]; then
77+
release_only=true
78+
else if [[ "${TARGET}" =~ "androideabi" ]]; then
79+
release_only=true
80+
fi
81+
82+
if [[ "$release_only" == false ]]; then
7883
# Run wasm32-unknown-unknown, aarch64, and android in release mode only
7984
# as for some reason the emulation quality of these is low
8085
cargo_test_impl

0 commit comments

Comments
 (0)