refactor: don't require imports for error_behavior_generic_methods
…
#6
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: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust_channel: ["1.64.0", "stable", "nightly"] | |
feature_set: ["--no-default-features"] | |
include: | |
- rust_channel: "nightly" | |
feature_set: "--all-features" | |
steps: | |
- name: install rustup | |
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal | |
- name: install rust | |
run: rustup install ${{matrix.rust_channel}} && rustup default ${{matrix.rust_channel}} | |
- uses: actions/checkout@v4 | |
- name: cargo check (without feature_set) | |
run: cargo check --verbose | |
- name: cargo check (with feature_set) | |
run: cargo check --verbose ${{matrix.feature_set}} | |
check-benches: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install rustup | |
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal | |
- name: Install rust nightly | |
run: rustup install nightly && rustup default nightly | |
- uses: actions/checkout@v4 | |
- name: Check that benches build | |
run: cargo check --benches --all-features | |
test: | |
runs-on: ubuntu-latest | |
env: | |
MIRIFLAGS: "-Zmiri-strict-provenance" | |
steps: | |
- name: install rustup | |
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly -y | |
- name: install miri | |
run: rustup toolchain install nightly --allow-downgrade --profile minimal --component miri | |
- uses: actions/checkout@v4 | |
- name: test | |
run: cargo test --all-features | |
- name: miri test | |
run: cargo miri test --all-features | |