Skip to content

Commit a08b1e6

Browse files
Clean up conditionals in CI
1 parent d78a80b commit a08b1e6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ci/run.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,16 @@ cargo_test_impl() {
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 ]]; then
75+
release_only=true
76+
elif [[ "${TARGET}" =~ aarch64 ]]; then
77+
release_only=true
78+
elif [[ "${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)