From cb61d3768bfee06961740c1a8ec8ccd85060ecd2 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 8 Mar 2022 13:16:23 -0500 Subject: [PATCH] update Miri CI config --- .github/workflows/ci.yml | 9 ++++++++- ci/miri.sh | 14 -------------- 2 files changed, 8 insertions(+), 15 deletions(-) delete mode 100755 ci/miri.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97fcf98..ea6b607 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,8 +67,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Install Miri + run: | + rustup toolchain install nightly --component miri + rustup override set nightly + cargo miri setup - name: Test with Miri - run: ci/miri.sh + run: | + cargo miri test + cargo miri test --all-features style: name: lints and formatting diff --git a/ci/miri.sh b/ci/miri.sh deleted file mode 100755 index 5aea2ec..0000000 --- a/ci/miri.sh +++ /dev/null @@ -1,14 +0,0 @@ -set -ex - -# Install Miri. -MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri) -echo "Installing latest nightly with Miri: $MIRI_NIGHTLY" -rustup default "$MIRI_NIGHTLY" -rustup component add miri - -# Run tests. -cargo miri test -cargo miri test --all-features - -# Restore old state in case Travis uses this cache for other jobs. -rustup default nightly