Finalize refactoring of Value wrapper #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/rust.yml' | |
- 'src/**.rs' | |
- 'tests/**' | |
- 'Cargo.toml' | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- '**' | |
paths: | |
- '.github/workflows/rust.yml' | |
- 'src/**.rs' | |
- 'tests/**' | |
- 'Cargo.toml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Rust Unix | |
if: runner.os != 'Windows' | |
run: | | |
if rustup --version >/dev/null 2>&1; then | |
rustup update | |
else | |
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable | |
echo ::add-path::$HOME/.cargo/bin | |
fi | |
- name: Install Miri | |
run: | | |
rustup toolchain install nightly | |
rustup +nightly component add miri | |
- name: Rust version | |
run: | | |
cargo --version | |
rustc --version | |
- name: Test | |
run: cargo test | |
- name: Miri Test | |
run: | | |
cargo +nightly miri test | |
cargo +nightly miri test --release |