Skip to content

Commit

Permalink
Re-enable Unix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlyoutofphase committed Sep 30, 2022
1 parent 5187d15 commit 73a9390
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions ci/run_linux_and_mac.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
#case $(uname | tr '[:upper:]' '[:lower:]') in
# linux*)
# export APPVEYOR_OS_NAME=linux
# ;;
# darwin*)
# export APPVEYOR_OS_NAME=osx
# ;;
#esac
#if [ "$APPVEYOR_OS_NAME" = "linux" ]; then export PATH="/home/appveyor/.cargo/bin:$PATH"; fi
#if [ "$APPVEYOR_OS_NAME" = "osx" ]; then export PATH="$HOME/.cargo/bin:$PATH"; fi
#if [ "$APPVEYOR_OS_NAME" = "linux" ]; then MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri); fi
#if [ "$APPVEYOR_OS_NAME" = "osx" ]; then MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-apple-darwin/miri); fi
#echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
#rustup set profile minimal
#rustup default "$MIRI_NIGHTLY"
#rustup component add miri
case $(uname | tr '[:upper:]' '[:lower:]') in
linux*)
export APPVEYOR_OS_NAME=linux
;;
darwin*)
export APPVEYOR_OS_NAME=osx
;;
esac
if [ "$APPVEYOR_OS_NAME" = "linux" ]; then export PATH="/home/appveyor/.cargo/bin:$PATH"; fi
if [ "$APPVEYOR_OS_NAME" = "osx" ]; then export PATH="$HOME/.cargo/bin:$PATH"; fi
if [ "$APPVEYOR_OS_NAME" = "linux" ]; then MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri); fi
if [ "$APPVEYOR_OS_NAME" = "osx" ]; then MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-apple-darwin/miri); fi
echo "Installing latest nightly with Miri: $MIRI_NIGHTLY"
rustup set profile minimal
rustup default "$MIRI_NIGHTLY"
rustup component add miri
# The `-Zmiri-disable-isolation` is so Miri can access the system clock
# while calling `SystemTime::now()` in one of the tests.
# The `-Zmiri-permissive-provenance` is because this crate has a few
# integer-to-pointer casts that are needed to avoid UB with ZST-related
# stuff.
#export MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-permissive-provenance"
export MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-permissive-provenance"
# We run the suite once under Miri with all functionality enabled, and then once
# normally without the default features just to make sure `no_std` support has
# not been broken.
#cargo clean
#cargo miri test --features="std" || exit 1
#cargo clean
#cargo test --no-default-features || exit 1
cargo clean
cargo miri test --features="std" || exit 1
cargo clean
cargo test --no-default-features || exit 1
# Uncommenting the last two lines also runs the libfuzzer fuzz target, but it's more suited for running
# locally than on CI currently due to the amount of time it takes to be effective
# cargo clean
Expand Down

0 comments on commit 73a9390

Please sign in to comment.