#!/bin/sh
set -e

# checks sled's compatibility using several targets

targets="wasm32-unknown-unknown aarch64-fuchsia aarch64-linux-android \
         i686-linux-android i686-unknown-linux-gnu \
         x86_64-linux-android x86_64-fuchsia \
         aarch64-apple-ios"

rustup update

for target in $targets; do
  echo "setting up $target..."
  rustup target add $target
  echo "checking $target..."
  cargo check --target $target
done

rustup toolchain install 1.39.0
cargo clean
rm Cargo.lock
cargo +1.39.0 check

#!/bin/sh
set -e

# checks sled's compatibility using several targets

targets="wasm32-unknown-unknown aarch64-fuchsia aarch64-linux-android \
         i686-linux-android i686-unknown-linux-gnu \
         x86_64-linux-android x86_64-fuchsia \
         aarch64-apple-ios"

rustup update

for target in $targets; do
  echo "setting up $target..."
  rustup target add $target
  echo "checking $target..."
  cargo check --target $target
done

RUSTFLAGS="--cfg miri" cargo check

rustup toolchain install 1.39.0
cargo clean
rm Cargo.lock
cargo +1.39.0 check

Check conditional compilation w/ miri config in CI
Check conditional compilation w/ miri config in CI
