mirror of
https://gitee.com/openharmony/third_party_rust_memoffset
synced 2024-11-27 01:11:21 +00:00
update Miri CI config
This commit is contained in:
parent
2a74b62c26
commit
cb61d3768b
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
14
ci/miri.sh
14
ci/miri.sh
@ -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
|
Loading…
Reference in New Issue
Block a user